code: def pytest_generate_tests(metafunc):
      tests = []
  
      for py_ver in ["3.6"]:
          python_bin, python_env = prepare_all(py_ver)
  
          update_env(python_env)
  
          yatest.common.execute(
              [
                  python_bin,
                  "-m",
                  "pytest",
                  "--collect-only",
                  TEST_SCRIPT,
              ],
              env=python_env,
          )
          with open("test-list") as f:
              for line in f:
                  line = line.strip()
                  if line:
                      test_name = line.split("::", 1)[1]
                      tests.append((py_ver, test_name))
  
      metafunc.parametrize(("py_ver", "case"), tests)
  
imports: import os
  import yatest.common
  from test_whl import prepare_all
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types