def add_rules_from_module(self, module):
    rule_paths = []
    for rule in module.rule_iter():
      rule_paths.append(rule.path)
    self._ensure_rules_present(rule_paths, requesting_module=module)
Adds all rules (and their dependencies) from the given module.
dataset/ETHPy150Open google/anvil-build/anvil/graph.py/RuleGraph.add_rules_from_module