code: def cores(self):
      return self.workflow.resource_settings.cores
  
file_path: snakemake/snakemake/executors/dryrun.py
imports: from snakemake_interface_executor_plugins.executors.base import AbstractExecutor
  from snakemake_interface_executor_plugins.jobs import JobExecutorInterface
  from snakemake_interface_executor_plugins.settings import CommonSettings
  from snakemake_interface_executor_plugins.executors.base import SubmittedJobInfo
  from snakemake.common import async_run
  from snakemake.logging import logger
label_desc: Use image node_id 9 for calling the Executor obj's underlying member method code with example usage: obj.cores() and returns: self