code: def pytest_generate_tests(metafunc):
      # collects all examples and parses their docstring for calls + outputs
      # it then parametrizes the function with 'example_test'
      if "example_test" in metafunc.fixturenames:
          examples = [
              os.path.splitext(f)[0]
              for f in os.listdir(EXAMPLES_PATH)
              if os.path.isfile(os.path.join(EXAMPLES_PATH, f))
              and f.endswith(".py")
              and f != "__init__.py"
              and re.match(r"^\d", f)
          ]
  
          sys.path.append(EXAMPLES_PATH)
          example_tests = []
          example_ids = []
          for example_name in sorted(examples):
              try:
                  example = __import__(example_name)
              except ModuleNotFoundError:
                  warnings.warn(
                      "could not import {name}, skips during test.".format(
                          name=example_name
                      )
                  )
                  continue
              calls_outs = get_calls_from_doc(example.__doc__)
              for i, (call, out) in enumerate(calls_outs):
                  example = reload(example)
                  example_tests.append((example.ex, call, out))
                  example_ids.append("{}_{}".format(example_name, i))
          metafunc.parametrize(
              "example_test", example_tests, ids=example_ids
          )
  
file_path: sacred/tests/conftest.py
imports: import pytest
  import tempfile
  import hashlib
  import os.path
  import re
  import shlex
  import sys
  import warnings
  from importlib import reload
  from sacred.settings import SETTINGS
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types