code: def register(cls, parser: argparse.ArgumentParser):
      parser.add_argument(
          "-e",
          "--env",
          type=env_var,
          action="append",
          help="Environment variables",
          dest="envs",
          metavar="KEY=VALUE",
      )
  
imports: import argparse
  import re
  import subprocess
  from typing import Dict, List, Optional, Tuple, Type
  from dstack._internal.cli.utils.common import console
  from dstack._internal.core.errors import ConfigurationError
  from dstack._internal.core.models.configurations import BaseConfiguration, BaseConfigurationWithPorts, ConfigurationType, DevEnvironmentConfiguration, PortMapping, ServiceConfiguration, TaskConfiguration
  from dstack._internal.utils.interpolator import VariablesInterpolator
label_desc: Use image node_id 1 for calling the BaseRunConfigurator obj's underlying member method code with example usage: obj.register(cls, parser) without return types