code: def pytest_generate_tests(metafunc: pytest.Metafunc) -> None:
      framework_name = t.cast(
          str, metafunc.config.getoption("framework")
      )
  
      if (
          "framework" in metafunc.fixturenames
          and "test_model" in metafunc.fixturenames
      ):
          metafunc.parametrize(
              "framework,test_model",
              generate_test_inputs(framework_name),
          )
      elif "framework" in metafunc.fixturenames:
          metafunc.parametrize(
              "framework",
              [inp[0] for inp in generate_test_inputs(framework_name)],
          )
  
file_path: BentoML/tests/integration/frameworks/conftest.py
imports: from __future__ import annotations
  import logging
  import os
  import pkgutil
  import typing
  from importlib import import_module
  from types import ModuleType
  from typing import TYPE_CHECKING
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types