code: def test_update_rules_with_metrics(self):
      classifier = setup_multi_ruleset_classifier(
          RuleSelectionMethod.WEIGHTED_MAX
      )
      expected = [
          (1, 0.5),
          (1, 5 / 9),
          (1, 0.375),
          (1, 1 / 3),
          (0, 0.4),
          (0, 5 / 9),
          (0, 0.6),
          (0, 2 / 3),
      ]
      actual = [(rule.label, rule.weight) for rule in classifier.rules]
      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 4 for calling the TestRuleSetClassifier obj's underlying member method code with example usage: obj.test_update_rules_with_metrics() without return types