code: def get_set_resources_args(self):
      return format_cli_arg(
          "--set-resources",
          [
              f"{rule}:{name}={value}"
              for rule, res in self.workflow.resource_settings.overwrite_resources.items()
              for name, value in res.items()
          ],
          skip=not self.workflow.resource_settings.overwrite_resources,
      )
  
imports: from dataclasses import dataclass, fields
  import hashlib
  import os
  import sys
  from typing import Mapping, TypeVar, TYPE_CHECKING, Any
  from snakemake_interface_executor_plugins.utils import format_cli_arg, join_cli_args
  from snakemake_interface_storage_plugins.registry import StoragePluginRegistry
  from snakemake import common
  from snakemake.settings import SharedFSUsage
label_desc: Use image node_id 5 for calling the SpawnedJobArgsFactory obj's underlying member method code with example usage: obj.get_set_resources_args() and returns: format_cli_arg