code: def split(rule: Rule) -> List[Rule]:
      if len(rule.agg_dict) == 1:
          return [rule]
      else:
          indv_rule_strs = list(map(lambda x: " ".join(x), rule.terms))
          indv_rules = list(map(lambda x: Rule(x), indv_rule_strs))
          return indv_rules
  
imports: from collections import Counter
  from typing import List
  from imodels.util.rule import Rule
label_desc: Use image node_id 2 for calling a global function with example usage: split(rule) and returns: list, indv_rules