code: def make_holder():
      class apiclass:
          def pytest_xyz(self, arg):
              """X"""
  
          def pytest_xyz_noarg(self):
              """X"""
  
      apimod = type(os)("api")
  
      def pytest_xyz(arg):
          """X"""
  
      def pytest_xyz_noarg():
          """X"""
  
      apimod.pytest_xyz = pytest_xyz  # type: ignore
      apimod.pytest_xyz_noarg = pytest_xyz_noarg  # type: ignore
      return apiclass, apimod
  
imports: import os
  import subprocess
  import sys
  import time
  from types import ModuleType
  from typing import List
  import _pytest.pytester
  import pytest
  from _pytest.config import ExitCode
  from _pytest.config import PytestPluginManager
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import HookRecorder
  from _pytest.pytester import LineMatcher
  from _pytest.pytester import Pytester
  from _pytest.pytester import SysModulesSnapshot
  from _pytest.pytester import SysPathsSnapshot
label_desc: Use image node_id 8 for calling a global function with example usage: make_holder() and returns: apiclass,  apimod