code: def _mk_common_exceptions():
      namespace = dict()
      if PY3_OR_LATER:
          import builtins as _builtin_exceptions
  
          common_exceptions = filter(
              lambda x: x.endswith("Error"), dir(_builtin_exceptions)
          )
      else:
          import exceptions as _builtin_exceptions
  
          common_exceptions = dir(_builtin_exceptions)
  
      for name in common_exceptions:
          obj = getattr(_builtin_exceptions, name)
          if isinstance(obj, type) and issubclass(obj, BaseException):
              this_obj, this_name = _mk_exception(obj, name=name)
              namespace[this_name] = this_obj
      return namespace
  
file_path: mlens/mlens/externals/joblib/my_exceptions.py
imports: import sys
  from ._compat import PY3_OR_LATER
label_desc: Use image node_id 2 for calling a global function with example usage: _mk_common_exceptions() and returns: namespace