code: def test_local_ports_conflict(self):
      conf = TaskConfiguration(commands=[], ports=["3000"])
      with pytest.raises(ConfigurationError):
          apply_args(conf, ["-p", "3000:4000"])
  
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 6 for calling the TestRunConfigurator obj's underlying member method code with example usage: obj.test_local_ports_conflict() without return types