code: def pytest_collection_modifyitems(items):
      """This function is automatically run by pytest passing all collected test
      functions.
  
      We use it to add asyncio marker to all async tests and assert we don't use
      test functions that are async generators which wouldn't make sense.
      """
      for item in items:
          if inspect.iscoroutinefunction(item.obj):
              item.add_marker("asyncio")
          assert not inspect.isasyncgenfunction(item.obj)
  
imports: import inspect
  import logging
  import os
  import sys
  from contextlib import contextmanager
  from pathlib import Path
  from subprocess import check_call, check_output
  from tempfile import NamedTemporaryFile, TemporaryDirectory
  from unittest import mock
  import IPython.paths
  import pytest
  import zmq
  from IPython.core.profiledir import ProfileDir
  from IPython.terminal.interactiveshell import TerminalInteractiveShell
  from traitlets.config import Config
  import ipyparallel
  from .None import setup, teardown
label_desc: Use image node_id 4 for calling a global function with example usage: pytest_collection_modifyitems(items) without return types