class_docstr: An exception representing another Exception that could not be pickled.
class_docstr_tok: ["An","exception","representing","another","Exception","that","could","not","be","pickled","."]
docstr: Always return a dumped (pickled) type and exc. If exc can't be pickled,
  wrap it in UnpickleableException first.
code: def dump(type, exc):
      """
      Always return a dumped (pickled) type and exc. If exc can't be pickled,
      wrap it in UnpickleableException first.
      """
      try:
          return pickle.dumps(type), pickle.dumps(exc)
      except Exception:
          # get UnpickleableException inside the sandbox
          from setuptools.sandbox import UnpickleableException as cls
  
          return cls.dump(cls, cls(repr(exc)))
  
imports: import os
  import sys
  import tempfile
  import operator
  import functools
  import itertools
  import re
  import contextlib
  import pickle
  import textwrap
  import builtins
  import pkg_resources
  from distutils.errors import DistutilsError
  from pkg_resources import working_set
label_desc: Use image node_id 1 for calling the UnpickleableException obj's underlying member method code with example usage: obj.dump(type, exc) and returns: pickle,  pickle, cls