code: def _get_complexity(self):
      check_is_fitted(self, ["rules_without_feature_names_"])
      return sum(
          [
              len(rule.agg_dict)
              for rule in self.rules_without_feature_names_
          ]
      )
  
file_path: imodels/imodels/rule_set/rule_set.py
imports: import numpy
  import pandas
  from sklearn.utils.validation import check_array, check_is_fitted
label_desc: Use image node_id 5 for calling the RuleSet obj's underlying member method code with example usage: obj._get_complexity() and returns: sum