input: Write a function to generate a histogram using the given data in Python. The function should plot the histogram with predefined bin ranges and labels. If the input data is empty, the function should return a message indicating that the data is empty.
  def generate_histogram(data):
      if not data:
          return "The input data is empty."
      import matplotlib.pyplot as plt
      plt.hist(data, bins=[0, 20, 40, 60, 80, 100, 120, 140, 160], edgecolor='black')
      plt.xlabel('Range of values')
      plt.ylabel('Number of Occurrences')
      plt.title('Histogram of data')
      plt.show()
  
  assert generate_histogram([3, 5, 7, 2, 8, 10, 11, 65, 72, 81, 99, 100, 150]) == None
  assert generate_histogram([]) == "The input data is empty."
output: def generate_histogram(data):
      if not data:
          return "The input data is empty."
      import matplotlib.pyplot as plt
      plt.hist(data, bins=[0, 20, 40, 60, 80, 100, 120, 140, 160], edgecolor='black')
      plt.xlabel('Range of values')
      plt.ylabel('Number of Occurrences')
      plt.title('Histogram of data')
      plt.show()