docstr: Ensure __all__ is always defined
docstr_tok: ["Ensure","__all__","is","always","defined"]
code: def __all__(self):
      """Ensure __all__ is always defined"""
      mod = __import__(self._mirror)
      try:
          return mod.__all__
      except AttributeError:
          return [name for name in dir(mod) if not name.startswith("_")]
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/shimmodule.py
imports: import sys
  import types
  from .importstring import import_item
label_desc: Use image node_id 5 for calling the ShimModule obj's underlying member method code with example usage: obj.__all__() and returns: mod, unknown