code: def pytest_pycollect_makemodule(
      module_path: Path, path: "LEGACY_PATH", parent
  ) -> Optional["Module"]:
      """Return a :class:`pytest.Module` collector or None for the given path.
  
      This hook will be called for each matching test module path.
      The :hook:`pytest_collect_file` hook needs to be used if you want to
      create test modules for files that do not match as a test module.
  
      Stops at first non-None result, see :ref:`firstresult`.
  
      :param module_path: The path of the module to collect.
      :param path: The path of the module to collect (deprecated).
  
      .. versionchanged:: 7.0.0
          The ``module_path`` parameter was added as a :class:`pathlib.Path`
          equivalent of the ``path`` parameter.
  
          The ``path`` parameter has been deprecated in favor of ``fspath``.
      """
  
imports: from pathlib import Path
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Mapping
  from typing import Optional
  from typing import Sequence
  from typing import Tuple
  from typing import TYPE_CHECKING
  from typing import Union
  from pluggy import HookspecMarker
  from _pytest.deprecated import WARNING_CMDLINE_PREPARSE_HOOK
label_desc: Use image node_id 19 for calling a global function with example usage: pytest_pycollect_makemodule(module_path, path, parent) without return types