code: def skip_rule(self, rulename):
      return (
          self.rule_whitelist is not None
          and rulename not in self.rule_whitelist
      ) or (
          self.rule_exclude_list is not None
          and rulename in self.rule_exclude_list
      )
  
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 3 for calling the WorkflowModifier obj's underlying member method code with example usage: obj.skip_rule(rulename) and returns: unknown