input: Write a function to generate a histogram in Python using matplotlib. The function should take a list of data as input and display a histogram with specified bins. If the input list is empty, the function should display a histogram with no data.
  assert generate_histogram([3, 5, 7, 2, 8, 10, 11, 65, 72, 81, 99, 100, 150])
  assert generate_histogram([])
output: import matplotlib.pyplot as plt
  
  def generate_histogram(data):
      plt.hist(data, bins=10, edgecolor='black')
      plt.show()