input: Write a function to generate a histogram in Python using the data provided. The histogram should be plotted with specified bin ranges and labels. If the data is empty, print a message indicating there is no data to plot.
  assert generate_histogram([3, 5, 7, 2, 8, 10, 11, 65, 72, 81, 99, 100, 150])==None
  assert generate_histogram([])==print("No data to plot")
output: def generate_histogram(data):
      if not data:
          print("No data to plot")
      else:
          import matplotlib.pyplot as plt
          plt.hist(data, bins=[0, 25, 50, 75, 100, 125, 150], edgecolor='black')
          plt.xlabel('Value')
          plt.ylabel('Frequency')
          plt.title('Histogram')
          plt.show()