code: def test_profile_name(self):
      profile = Profile(name="test")
      modified, args = apply_args(profile, ["--profile", "test2"])
      assert profile.dict() == modified.dict()
      assert args.profile == "test2"
  
imports: import argparse
  from typing import List, Tuple
  import pytest
  from dstack._internal.cli.services.configurators.profile import apply_profile_args, gpu_spec, register_profile_args
  from dstack._internal.core.models.profiles import Profile, ProfileGPU, ProfileResources, ProfileRetryPolicy, SpotPolicy
label_desc: Use image node_id 2 for calling the TestProfileArgs obj's underlying member method code with example usage: obj.test_profile_name() without return types