code: def _register(self):
      super()._register()
      self._parser.add_argument(
          "-h",
          "--help",
          nargs="?",
          type=ConfigurationType,
          default=NOTSET,
          help="Show this help message and exit. TYPE is one of [code]task[/], [code]dev-environment[/], [code]service[/]",
          dest="help",
          metavar="TYPE",
      )
      self._parser.add_argument("working_dir")
      self._parser.add_argument(
          "-f",
          "--file",
          type=Path,
          metavar="FILE",
          help="The path to the run configuration file. Defaults to [code]WORKING_DIR/.dstack.yml[/]",
          dest="configuration_file",
      )
      self._parser.add_argument(
          "-n",
          "--name",
          dest="run_name",
          help="The name of the run. If not specified, a random name is assigned",
      )
      self._parser.add_argument(
          "-d",
          "--detach",
          help="Do not poll logs and run status",
          action="store_true",
      )
      self._parser.add_argument(
          "-y",
          "--yes",
          help="Do not ask for plan confirmation",
          action="store_true",
      )
      self._parser.add_argument(
          "--max-offers",
          help="Number of offers to show in the run plan",
          type=int,
          default=3,
      )
      register_profile_args(self._parser)
  
imports: import argparse
  import sys
  import time
  from pathlib import Path
  from typing import Optional
  from dstack._internal.cli.commands import APIBaseCommand
  from dstack._internal.cli.services.configurators.profile import apply_profile_args, register_profile_args
  from dstack._internal.cli.services.configurators.run import BaseRunConfigurator, run_configurators_mapping
  from dstack._internal.cli.utils.common import confirm_ask, console
  from dstack._internal.cli.utils.run import print_run_plan
  from dstack._internal.core.errors import CLIError, ConfigurationError, ServerClientError
  from dstack._internal.core.models.configurations import ConfigurationType
  from dstack._internal.core.models.runs import JobErrorCode
  from dstack._internal.core.services.configs import ConfigManager
  from dstack._internal.utils.logging import get_logger
  from dstack.api import RunStatus
  from dstack.api._public.runs import Run
  from dstack.api.utils import load_configuration, load_profile
label_desc: Use image node_id 1 for calling the RunCommand obj's underlying member method code with example usage: obj._register() without return types