code: def pytest_generate_tests(metafunc):
      device_fixtures = {
          "parametrize_device": "device",
          "parametrize_device_name": "device_name",
      }
      marker = [
          m
          for m in metafunc.definition.iter_markers()
          if m.name in ("parametrize_device", "parametrize_device_name")
      ]
      if marker:
          (marker,) = marker  # asserts len == 1
          (device_names,) = marker.args
          # fixture name is either device or device_name
          fixture_name = device_fixtures[marker.name]
          metafunc.parametrize(
              fixture_name, device_names, indirect=True
          )
  
imports: import pytest
  import chainerx.testing
  from chainerx_tests import cuda_utils
label_desc: Use image node_id 4 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types