code: def generate_test_inputs(
      framework: str | None,
  ) -> list[tuple[ModuleType, FrameworkTestModel]]:
      if framework is None:
          frameworks = [
              name
              for _, name, _ in pkgutil.iter_modules(
                  [os.path.join(os.path.dirname(__file__), "models")]
              )
          ]
      else:
          frameworks = [framework]
  
      input_modules: list[ModuleType] = []
      for framework_name in frameworks:
          try:
              module = import_module(
                  f".{framework_name}",
                  "tests.integration.frameworks.models",
              )
              if hasattr(module, "backward_compatible"):
                  # We want to test modules that has backward log warning
                  object.__setattr__(
                      module.framework,
                      "__test_backward_compatible__",
                      module.backward_compatible,
                  )
              input_modules.append(module)
          except ModuleNotFoundError:
              import traceback
  
              logger.warning(
                  f"Failed to import test module for framework {framework_name} (tests.integration.frameworks.models.{framework_name}). See traceback by passing '--capture=tee-sys' to pytest:"
              )
              traceback.print_exc()
  
      return [
          (module.framework, _model)
          for module in input_modules
          for _model in module.models
      ]
  
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 5 for calling a global function with example usage: generate_test_inputs(framework) and returns: unknown