code: def test_batch_evaluate(self):
      d = {"x1": [1, 2], "x2": [-2, -1]}
      df = pd.DataFrame(data=d)
  
      def side_effect_fn(assignment):
          return True if assignment == {"x1": 1, "x2": -2} else False
  
      mock_ruleset = DnfRuleSet([], "class1")
      mock_ruleset.evaluate = MagicMock(side_effect=side_effect_fn)
      actual = batch_evaluate(mock_ruleset, df)
      expected = pd.Series([True, False])
      pd.testing.assert_series_equal(actual, expected)
  
file_path: AIX360/tests/rule_induction/trxf/core/test_utils.py
imports: from unittest import TestCase
  from unittest.mock import MagicMock
  import pandas
  from aix360.algorithms.rule_induction.trxf.core.dnf_ruleset import DnfRuleSet
  from aix360.algorithms.rule_induction.trxf.core.utils import set_equality, batch_evaluate
label_desc: Use image node_id 2 for calling the TestRuleSet obj's underlying member method code with example usage: obj.test_batch_evaluate() and returns: unknown