def METHOD_NAME(self, sql: str) -> str:
    """
    Generates a deterministic SQL hash. Attempts to remove any formatting from the
    SQL code where possible.
    """
    sql_no_fmt = self._normalize(sql)
    return hashlib.md5(sql_no_fmt.encode('utf-8')).hexdigest()