code: def dummy_yaml_custom_test(pytester: Pytester) -> None:
      """Writes a conftest file that collects and executes a dummy yaml test.
  
      Taken from the docs, but stripped down to the bare minimum, useful for
      tests which needs custom items collected.
      """
      pytester.makeconftest(
          """
          import pytest
  
          def pytest_collect_file(parent, file_path):
              if file_path.suffix == ".yaml" and file_path.name.startswith("test"):
                  return YamlFile.from_parent(path=file_path, parent=parent)
  
          class YamlFile(pytest.File):
              def collect(self):
                  yield YamlItem.from_parent(name=self.path.name, parent=self)
  
          class YamlItem(pytest.Item):
              def runtest(self):
                  pass
      """
      )
      pytester.makefile(".yaml", test1="")
  
file_path: pytest/testing/conftest.py
imports: import dataclasses
  import re
  import sys
  from typing import Generator
  from typing import List
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 5 for calling a global function with example usage: dummy_yaml_custom_test(pytester) without return types