code: def _setup_collect_fakemodule():
      from types import ModuleType
      import pytest
  
      pytest.collect = ModuleType("pytest.collect")
      pytest.collect.__all__ = []  # used for setns
      for attribute in COLLECT_FAKEMODULE_ATTRIBUTES:
          setattr(pytest.collect, attribute, getattr(pytest, attribute))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import codecs
  import functools
  import inspect
  import re
  import sys
  from contextlib import contextmanager
  import attr
  import py
  import six
  from six import text_type
  import _pytest
  from _pytest._io.saferepr import saferepr
  from _pytest.outcomes import fail
  from _pytest.outcomes import TEST_OUTCOME
label_desc: Use image node_id 17 for calling a global function with example usage: _setup_collect_fakemodule() without return types