code: def pytest_generate_tests(metafunc):
      # main test generator
      # generates the parameter combos for
      # the tests based on whether the
      # "--all" option is given to py.test
      # that option is added in conftest.py
  
      # global parameter
      if metafunc.config.option.all:
          bsz_rng = [16, 32, 64]
      else:
          bsz_rng = [8]
  
      # mlp tests
      if "bnargs" in metafunc.fixturenames:
          fargs = []
          if metafunc.config.option.all:
              n = [2, 4, 8, 10, 64, (3, 16, 16), (1, 14, 14)]
          else:
              n = [2, 4]
  
          # generate the params lists
          fargs = itt.product(n, bsz_rng)
  
          # parameterize the call for all test functions
          # with mlpargs as an argument
          metafunc.parametrize("bnargs", fargs)
  
file_path: neon/tests/test_gradient_batchnorm.py
imports: import itertools
  import numpy
  import pytest
  from neon import NervanaObject
  from neon.layers.layer import BatchNorm
  from grad_funcs import general_gradient_comp
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types