docstr: Opr Tree:
                   LogicalFilter
                   /                             LogicalGet      LogicalGet
  
  Pattern:
                   LogicalFilter
                   /                             LogicalGet      LogicalGet
docstr_tok: ["Opr","Tree",":","LogicalFilter","\/","LogicalGet","LogicalGet","Pattern",":","LogicalFilter","\/","LogicalGet","LogicalGet"]
code: def test_simple_binder_match(self):
      """
          Opr Tree:
                           LogicalFilter
                           /           \
                    LogicalGet      LogicalGet
  
          Pattern:
                           LogicalFilter
                           /           \
                    LogicalGet      LogicalGet
          """
      child1_opr = LogicalGet(MagicMock(), MagicMock(), MagicMock())
      child2_opr = LogicalGet(MagicMock(), MagicMock(), MagicMock())
      root_opr = LogicalFilter(MagicMock(), [child1_opr, child2_opr])
  
      child1_ptn = Pattern(OperatorType.LOGICALGET)
      child2_ptn = Pattern(OperatorType.LOGICALGET)
      root_ptn = Pattern(OperatorType.LOGICALFILTER)
      root_ptn.append_child(child1_ptn)
      root_ptn.append_child(child2_ptn)
  
      opt_ctxt = OptimizerContext(MagicMock(), CostModel())
      root_grp_expr = opt_ctxt.add_opr_to_group(root_opr)
  
      binder = Binder(root_grp_expr, root_ptn, opt_ctxt.memo)
  
      for match in iter(binder):
          self.helper_pre_order_match(root_opr, match)
  
file_path: evadb/test/unit_tests/optimizer/test_binder.py
imports: import copy
  import unittest
  from mock import MagicMock
  from evadb.optimizer.binder import Binder
  from evadb.optimizer.cost_model import CostModel
  from evadb.optimizer.operators import Dummy, LogicalFilter, LogicalGet, OperatorType
  from evadb.optimizer.optimizer_context import OptimizerContext
  from evadb.optimizer.rules.pattern import Pattern
label_desc: Use image node_id 2 for calling the TestBinder obj's underlying member method code with example usage: obj.test_simple_binder_match() without return types