code: def pytest_collect_file(
      file_path: Path, parent: "Collector"
  ) -> "Optional[Collector]":
      """Create a :class:`~pytest.Collector` for the given path, or None if not relevant.
  
      For best results, the returned collector should be a subclass of
      :class:`~pytest.File`, but this is not required.
  
      The new node needs to have the specified ``parent`` as a parent.
  
      :param file_path: The path to analyze.
      :param path: The path to collect (deprecated).
  
      .. versionchanged:: 7.0.0
          The ``file_path`` parameter was added as a :class:`pathlib.Path`
          equivalent of the ``path`` parameter.
  
      .. versionchanged:: 8.0.0
          The ``path`` parameter was removed.
      """
  
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
label_desc: Use image node_id 13 for calling a global function with example usage: pytest_collect_file(file_path, parent) without return types