code: def test_predict_first_hit(self):
      ruleset = utilities.create_test_ruleset()
      classifier = RuleSetClassifier(
          [ruleset],
          rule_selection_method=RuleSelectionMethod.FIRST_HIT,
          default_label=0,
      )
      assignment1 = {
          "toto0": 0.05,
          "toto1": "bar",
          "toto2": False,
          "toto3": -2,
      }
      actual = classifier.predict(assignment1)
      expected = 1
      self.assertEqual(expected, actual)
  
      assignment2 = {"toto0": -5, "toto1": 5, "toto2": 2, "toto3": -2}
      actual = classifier.predict(assignment2)
      expected = 0
      self.assertEqual(expected, actual)
  
file_path: AIX360/tests/rule_induction/trxf/classifier/test_ruleset_classifier.py
imports: from unittest import TestCase
  from aix360.algorithms.rule_induction.trxf.classifier.ruleset_classifier import RuleSetClassifier, RuleSelectionMethod, ConfidenceMetric, WeightMetric
  from tests.rule_induction.trxf import utilities
label_desc: Use image node_id 1 for calling the TestRuleSetClassifier obj's underlying member method code with example usage: obj.test_predict_first_hit() without return types