input: from typing import List
  
  def execute_sql_query(database_path: str, table_name: str, category: str) -> List[tuple]:
      """ Execute an SQL query in Python to select all rows from a specified table where the category matches the given value.
      The function returns a list of tuples, each representing a row in the result set.
      >>> execute_sql_query('movies.db', 'Movies', 'horror')
      [(1, 'The Exorcist', 'horror'), (2, 'Halloween', 'horror')]
      """
output:     import sqlite3
  
      conn = sqlite3.connect(database_path)
      cursor = conn.cursor()
      query = f"SELECT * FROM {table_name} WHERE category = ?"
      cursor.execute(query, (category,))
      result = cursor.fetchall()
      conn.close()
      return result