def _get_rule_size(self, rule):
    """Computes the size for a given rule."""
    if rule not in self.rule_to_size:
      self.rule_to_size[rule] = _get_rule_size(rule, self.config)
    return self.rule_to_size[rule]
Computes the size for a given rule.
language/compgen/csl/induction/objective_utils.py