code: def test_gpu(self):
      profile = Profile(name="test")
      modified, _ = apply_args(profile, ["--gpu", "A100:2:2GB"])
      profile.resources.gpu = ProfileGPU(
          name="A100", count=2, memory="2GB"
      )
      assert profile.dict() == modified.dict()
  
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 3 for calling the TestProfileArgs obj's underlying member method code with example usage: obj.test_gpu() without return types