input: Write a function to generate a histogram using the given data in Python. The function should plot the histogram with specified bins and labels, and display the histogram. If the input data is empty, the function should print "No data to plot."
  assert generate_histogram([3, 5, 7, 2, 8, 10, 11, 65, 72, 81, 99, 100, 150])==None
  assert generate_histogram([])=="No data to plot."
  assert generate_histogram([1, 2, 3, 4, 5])==None
output: def generate_histogram(data):
      if not data:
          print("No data to plot.")
          return "No data to plot."
      plt.hist(data, bins=10, color='blue', alpha=0.7)
      plt.xlabel('Values')
      plt.ylabel('Frequency')
      plt.title('Histogram')
      plt.show()