class_docstr: An object modelling a logical rule and add factorization methods.
  It is used to simplify rules and deduplicate them.
  
  Parameters
  ----------
  
  rule : str
      The logical rule that is interpretable by a pandas query.
  
  args : object, optional
      Arguments associated to the rule, it is not used for factorization
      but it takes part of the output when the rule is converted to an array.
code: def __init__(self, rule, args=None):
      self.rule = rule
      self.args = args
      self.terms = [t.split(" ") for t in self.rule.split(" and ")]
      self.agg_dict = {}
      self.factorize()
      self.rule = str(self)
  
file_path: skope-rules/skrules/rule.py
imports: import re
label_desc: Use image node_id 1 to create a new Rule object  with example: obj = Rule(rule, args)