code: def conditions_to_filter(binary_op: ASTNode):
      conditions = extract_comparison_conditions(binary_op)
  
      filters = {}
      for op, arg1, arg2 in conditions:
          if op != "=":
              raise NotImplementedError
          filters[arg1] = arg2
      return filters
  
file_path: mindsdb/mindsdb/integrations/utilities/sql_utils.py
imports: import pandas
  from mindsdb.api.executor.utilities.sql import query_df
  from mindsdb_sql.parser import ast
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb_sql.planner.utils import query_traversal
label_desc: Use image node_id 2 for calling a global function with example usage: conditions_to_filter(binary_op) and returns: filters