code: def use_cloudpickle():
      """use cloudpickle to expand serialization support
  
      adds support for object methods and closures to serialization.
      """
      import cloudpickle
  
      global pickle  # noqa: PLW0603
      pickle = cloudpickle
  
      try:
          from ipykernel import serialize
      except ImportError:
          pass
      else:
          serialize.pickle = cloudpickle  # type:ignore[attr-defined]
  
      # disable special function handling, let cloudpickle take care of it
      can_map.pop(FunctionType, None)
  
imports: import typing
  import warnings
  import copy
  import pickle
  import sys
  from types import FunctionType
  from ipyparallel.serialize import codeutil
  from traitlets.log import get_logger
  from traitlets.utils.importstring import import_item
label_desc: Use image node_id 4 for calling a global function with example usage: use_cloudpickle() without return types