code: def test_async_api_gpu(
      printer: Callable, config: Dict, client: cx.Client, api: str
  ):
      skip_gpus = config["global"].get("skip_gpus", False)
      if skip_gpus:
          pytest.skip("--skip-gpus flag detected, skipping GPU tests")
  
      e2e.tests.test_async_api(
          printer=printer,
          client=client,
          api=api,
          deploy_timeout=config["global"]["async_deploy_timeout"],
          poll_retries=config["global"]["async_workload_timeout"],
          api_config_name="cortex_gpu.yaml",
          node_groups=config["aws"]["x86_nodegroups"],
      )
  
imports: from typing import Callable, Dict
  import cortex
  import pytest
  import e2e.tests
label_desc: Use image node_id 2 for calling a global function with example usage: test_async_api_gpu(printer, config, client, api) without return types