code: def get_group_args(self):
      group_settings = self.workflow.group_settings
      groups = format_cli_arg(
          "--groups",
          [
              f"{rule}={group}"
              for rule, group in group_settings.overwrite_groups.items()
          ],
          skip=not group_settings.overwrite_groups,
      )
      group_components = format_cli_arg(
          "--group-components",
          [
              f"{group}={n}"
              for group, n in group_settings.group_components.items()
          ],
          skip=not group_settings.group_components,
      )
      return join_cli_args([groups, group_components])
  
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 8 for calling the SpawnedJobArgsFactory obj's underlying member method code with example usage: obj.get_group_args() and returns: join_cli_args