input: def generate_html_table(database_path: str, genre: str, table_name: str) -> str:
      """ Generate an HTML table displaying information about the top 10 bestselling books in a specific genre.
      The function connects to a SQLite database, retrieves the top 10 books by sales in the specified genre,
      and returns the HTML code for the table.
      >>> generate_html_table('books.db', 'Fantasy', 'Books')
      '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>The Lord of the Rings</td><td>J.R.R. Tolkien</td><td>Fantasy</td><td>150000000</td></tr><tr><td>Harry Potter and the Philosopher's Stone</td><td>J.K. Rowling</td><td>Fantasy</td><td>120000000</td></tr></table>'
      """
  
      import sqlite3
  
      # connect to the database
      conn = sqlite3.connect(database_path)
      c = conn.cursor()
  
      # retrieve the data
      c.execute(f'''SELECT title, author, genre, sales
      FROM {table_name}
      WHERE genre='{genre}'
      ORDER BY sales DESC
      LIMIT 10''')
  
      # save the results
      results = c.fetchall()
  
      # generate the HTML code
      html = '<table>'
      html += '<tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr>'
  
      for result in results:
          title = result[0]
          author = result[1]
          genre = result[2]
          sales = result[3]
  
          html += f'<tr><td>{title}</td><td>{author}</td><td>{genre}</td><td>{sales}</td></tr>'
  
      html += '</table>'
  
      # close the connection
      conn.close()
  
      return html
output:     import sqlite3
  
      # connect to the database
      conn = sqlite3.connect(database_path)
      c = conn.cursor()
  
      # retrieve the data
      c.execute(f'''SELECT title, author, genre, sales
      FROM {table_name}
      WHERE genre='{genre}'
      ORDER BY sales DESC
      LIMIT 10''')
  
      # save the results
      results = c.fetchall()
  
      # generate the HTML code
      html = '<table>'
      html += '<tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr>'
  
      for result in results:
          title = result[0]
          author = result[1]
          genre = result[2]
          sales = result[3]
  
          html += f'<tr><td>{title}</td><td>{author}</td><td>{genre}</td><td>{sales}</td></tr>'
  
      html += '</table>'
  
      # close the connection
      conn.close()
  
      return html