code: def use_dill():
      """use dill to expand serialization support
  
      adds support for object methods and closures to serialization.
      """
      # import dill causes most of the magic
      import dill
  
      # dill doesn't work with cPickle,
      # tell the two relevant modules to use plain pickle
  
      global pickle
      pickle = dill
  
      try:
          from ipykernel import serialize
      except ImportError:
          pass
      else:
          serialize.pickle = dill
  
      # disable special function handling, let dill take care of it
      can_map.pop(FunctionType, None)
  
imports: import warnings
  import copy
  import sys
  from types import FunctionType
  from ipython_genutils import py3compat
  from ipython_genutils.importstring import import_item
  from ipython_genutils.py3compat import string_types, iteritems, buffer_to_bytes, buffer_to_bytes_py2
  from traitlets.log import get_logger
label_desc: Use image node_id 3 for calling a global function with example usage: use_dill() without return types