input: Write a function to generate a histogram in Python using the data provided. The function should take a list of integers as input and plot a histogram with specified bins. If the list is empty, the function should print 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])
  assert generate_histogram([]) # should print "No data to plot"
output: def generate_histogram(data):
      if not data:
          print("No data to plot")
      else:
          plt.hist(data, bins=10)
          plt.show()