code: def delayed(function, check_pickle=True):
      """Decorator used to capture the arguments of a function.
  
      Pass `check_pickle=False` when:
  
      - performing a possibly repeated check is too costly and has been done
        already once outside of the call to delayed.
  
      - when used in conjunction `Parallel(backend='threading')`.
  
      """
      # Try to pickle the input function, to catch the problems early when
      # using with multiprocessing:
      if check_pickle:
          pickle.dumps(function)
  
      def delayed_function(*args, **kwargs):
          return function, args, kwargs
  
      try:
          delayed_function = functools.wraps(function)(delayed_function)
      except AttributeError:
          "functools.wraps fails on some callable objects"
      return delayed_function
  
imports: from __future__ import division
  import os
  import sys
  from math import sqrt
  import functools
  import time
  import threading
  import itertools
  from numbers import Integral
  from contextlib import contextmanager
  from ._multiprocessing_helpers import mp
  from .format_stack import format_outer_frames
  from .logger import Logger, short_format_time
  from .my_exceptions import TransportableException, _mk_exception
  from .disk import memstr_to_bytes
  from ._parallel_backends import FallbackToBackend, MultiprocessingBackend, ThreadingBackend, SequentialBackend
  from ._compat import _basestring
  from .func_inspect import getfullargspec
  from ._parallel_backends import AutoBatchingMixin
  from ._parallel_backends import ParallelBackendBase
label_desc: Use image node_id 5 for calling a global function with example usage: delayed(function, check_pickle) and returns: delayed_function, function,  args,  kwargs