code: def collect_one_node(collector):
      ihook = collector.ihook
      ihook.pytest_collectstart(collector=collector)
      rep = ihook.pytest_make_collect_report(collector=collector)
      call = rep.__dict__.pop("call", None)
      if call and check_interactive_exception(call, rep):
          ihook.pytest_exception_interact(
              node=collector, call=call, report=rep
          )
      return rep
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import bdb
  import os
  import sys
  from time import time
  import attr
  import six
  from .reports import CollectErrorRepr
  from .reports import CollectReport
  from .reports import TestReport
  from _pytest._code.code import ExceptionInfo
  from _pytest.compat import safe_str
  from _pytest.outcomes import Exit
  from _pytest.outcomes import Skipped
  from _pytest.outcomes import TEST_OUTCOME
label_desc: Use image node_id 18 for calling a global function with example usage: collect_one_node(collector) and returns: rep