code: def pytest_generate_tests(metafunc):
      """
      This method gets called for all test cases. Here, we set the arguments supplied in pytest_addoption().
      """
      option_value = metafunc.config.option.use_gpu
      if "use_gpu" in metafunc.fixturenames:
          if option_value:
              metafunc.parametrize("use_gpu", [True], scope="session")
          else:
              metafunc.parametrize("use_gpu", [False], scope="session")
  
file_path: FARM/test/conftest.py
imports: import psutil
  import pytest
  from pathlib import Path
  from farm.data_handler.data_silo import DataSilo
  from farm.data_handler.processor import SquadProcessor
  from farm.modeling.adaptive_model import AdaptiveModel
  from farm.modeling.language_model import LanguageModel
  from farm.modeling.optimization import initialize_optimizer
  from farm.modeling.prediction_head import QuestionAnsweringHead
  from farm.modeling.tokenization import Tokenizer
  from farm.train import Trainer
  from farm.utils import set_all_seeds, initialize_device_settings
  from farm.infer import Inferencer, QAInferencer
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types