code: def _setup_cuda_marker(item):
      """Pytest marker to indicate number of NVIDIA GPUs required to run the test.
  
      Tests can be annotated with this decorator (e.g., ``@pytest.mark.cuda``) to
      declare that one NVIDIA GPU is required to run.
  
      Tests can also be annotated as ``@pytest.mark.cuda(2)`` to declare number
      of NVIDIA GPUs required to run. When running tests, if
      ``CHAINERX_TEST_CUDA_DEVICE_LIMIT`` environment variable is set to value
      greater than or equals to 0, test cases that require GPUs more than the
      limit will be skipped.
      """
  
      cuda_marker = [m for m in item.iter_markers() if m.name == "cuda"]
      if cuda_marker:
          (cuda_marker,) = cuda_marker  # asserts len == 1
          required_num = cuda_marker.args[0] if cuda_marker.args else 1
          if cuda_utils.get_cuda_limit() < required_num:
              pytest.skip(
                  "{} NVIDIA GPUs required".format(required_num)
              )
  
imports: import pytest
  import chainerx.testing
  from chainerx_tests import cuda_utils
label_desc: Use image node_id 7 for calling a global function with example usage: _setup_cuda_marker(item) without return types