code: def test_env_override(self):
      conf = TaskConfiguration(commands=[], env={"A": "0"})
      modified, args = apply_args(conf, ["-e", "A=1", "--env", "B=2"])
      conf.env = {"A": "1", "B": "2"}
      assert modified.dict() == conf.dict()
  
file_path: dstack/src/tests/_internal/cli/services/configurators/test_run.py
imports: import argparse
  from typing import List, Tuple
  import pytest
  from dstack._internal.cli.services.configurators.run import run_configurators_mapping
  from dstack._internal.core.errors import ConfigurationError
  from dstack._internal.core.models.configurations import BaseConfiguration, PortMapping, TaskConfiguration
label_desc: Use image node_id 4 for calling the TestRunConfigurator obj's underlying member method code with example usage: obj.test_env_override() without return types