code: def pytest_generate_tests(metafunc):
      devices = metafunc.config.option.device
      if not devices:
          devices = ["cpu"]
      if "ctx" in metafunc.fixturenames:
          metafunc.parametrize(
              "ctx", [getattr(mx, device)() for device in devices]
          )
  
file_path: gluon-nlp/conftest.py
imports: import logging
  import os
  import random
  import numpy
  import mxnet
  import gluonnlp
  import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types