input: 
  def generate_histogram(data: list) -> None:
      """Given a list of numerical data, generate a histogram using matplotlib's pyplot.
      Example:
      generate_histogram([3, 5, 7, 2, 8, 10, 11, 65, 72, 81, 99, 100, 150])
      Output:
      A histogram with the following specifications:
      - Bins: [0, 20, 40, 60, 80, 100, 120, 140, 160]
      - Edge color: black
      - x-axis label: 'Range of values'
      - y-axis label: 'Number of Occurrences'
      - Title: 'Histogram of data'
      """
  
  
output:     import matplotlib.pyplot as plt
  
      bins = [0, 20, 40, 60, 80, 100, 120, 140, 160]
      plt.hist(data, bins=bins, edgecolor='black')
      plt.xlabel('Range of values')
      plt.ylabel('Number of Occurrences')
      plt.title('Histogram of data')
      plt.show()