input: Write a function to generate a histogram in Python using the provided data. The function should use the matplotlib library to plot the histogram with specified bins and labels. If the data is empty, the function should return a message indicating that there is no data to plot.
  assert generate_histogram([3, 5, 7, 2, 8, 10, 11, 65, 72, 81, 99, 100, 150])==True
  assert generate_histogram([])=='No data to plot'
output: def generate_histogram(data):
      if not data:
          return 'No data to plot'
      import matplotlib.pyplot as plt
      plt.hist(data, bins=10, color='blue', edgecolor='black')
      plt.xlabel('Value')
      plt.ylabel('Frequency')
      plt.title('Histogram')
      plt.show()
      return True