code: def test_any_port(self):
      conf = TaskConfiguration(commands=[], ports=["8000"])
      modified, args = apply_args(conf, ["-p", "*:8000"])
      conf.ports = [PortMapping(local_port=None, container_port=8000)]
      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 7 for calling the TestRunConfigurator obj's underlying member method code with example usage: obj.test_any_port() without return types