code: def test_rule():
      assert_equal(Rule("a <= 10 and a <= 12"), Rule("a <= 10"))
      assert_equal(
          Rule("a <= 10 and a <= 12 and a > 3"),
          Rule("a > 3 and a <= 10"),
      )
  
      assert_equal(
          Rule("a <= 10 and a <= 10 and a > 3"),
          Rule("a > 3 and a <= 10"),
      )
  
      assert_equal(
          Rule("a <= 10 and a <= 12 and b > 3 and b > 6"),
          Rule("a <= 10 and b > 6"),
      )
  
      assert_equal(len({Rule("a <= 2 and a <= 3"), Rule("a <= 2")}), 1)
  
      assert_equal(
          len(
              {
                  Rule("a > 2 and a > 3 and b <= 2 and b <= 3"),
                  Rule("a > 3 and b <= 2"),
              }
          ),
          1,
      )
  
      assert_equal(
          len({Rule("a <= 3 and b <= 2"), Rule("b <= 2 and a <= 3")}), 1
      )
  
imports: from sklearn.utils.testing import assert_equal, assert_not_equal
  from skrules import Rule, replace_feature_name
label_desc: Use image node_id 1 for calling a global function with example usage: test_rule() without return types