code: def get_rule_whitelist(self, rules):
      if "*" in rules:
          if len(rules) != 1:
              raise SyntaxError(
                  "The 'use rule' statement uses a wildcard '*' but lists multiple additional rules."
              )
          else:
              return None
      return set(rules)
  
imports: from pathlib import Path
  import types
  import re
  from snakemake.common import Rules
  from snakemake.exceptions import WorkflowError
  from snakemake.path_modifier import PathModifier
  from snakemake import wrapper
label_desc: Use image node_id 5 for calling the ModuleInfo obj's underlying member method code with example usage: obj.get_rule_whitelist(rules) and returns: set, None