input: Write a python function to generate and save a bar chart from a given dictionary using matplotlib, and print the corresponding HTML code to display the chart.
  assert generate_bar_chart_html({'red': 10, 'orange': 12, 'yellow': 8}) == """
  <!DOCTYPE html>
  <html>
  <head>
   <title>Bar Chart</title>
  </head>
  <body>
   <h1>Bar Chart</h1>
   <img src='bar_chart.png' />
  </body>
  </html>
  """
  assert generate_bar_chart_html({'blue': 15, 'green': 20, 'purple': 5}) == """
  <!DOCTYPE html>
  <html>
  <head>
   <title>Bar Chart</title>
  </head>
  <body>
   <h1>Bar Chart</h1>
   <img src='bar_chart.png' />
  </body>
  </html>
  """
output: import matplotlib.pyplot as plt
  
  def generate_bar_chart_html(data):
      # Generate bar chart
      plt.bar(data.keys(), data.values(), color=data.keys())
      plt.savefig('bar_chart.png')
      plt.close()
  
      # Generate HTML
      html = """
  <!DOCTYPE html>
  <html>
  <head>
   <title>Bar Chart</title>
  </head>
  <body>
   <h1>Bar Chart</h1>
   <img src='bar_chart.png' />
  </body>
  </html>
  """
      return html