code: def get_callable(key, dct):
      """Get the callable mapped by a key from a dictionary. This is
      necessary for pickling (so we don't try to pickle an unbound method).
  
      Parameters
      ----------
      key : str
          The key for the ``dct`` dictionary.
  
      dct : dict
          The dictionary of callables.
      """
      fun = dct.get(key, None)
  
      if (
          not isinstance(key, str) or fun is None
      ):  # ah, that's no fun :(
          raise ValueError(
              "key must be a string in one in %r, but got %r"
              % (dct, key)
          )
      return fun
  
imports: from .array import *
  from .metaestimators import *
  from .visualization import *
  from .wrapped import *
label_desc: Use image node_id 1 for calling a global function with example usage: get_callable(key, dct) and returns: fun