code: def _import_all(self, module):
      mdict = module.__dict__
      if "__all__" in mdict:
          keys = mdict["__all__"]
      else:
          keys = [k for k in mdict if not k.startswith("_")]
  
      for k in keys:
          try:
              self.shell.push({k: mdict[k]})
          except KeyError:
              msg = "'module' object has no attribute '%s'" % k
              raise AttributeError(msg)
  
imports: from __future__ import absolute_import, print_function
  import io
  import os
  import re
  import sys
  import time
  import copy
  import distutils.log
  import textwrap
  from distutils.core import Distribution, Extension
  from distutils.command.build_ext import build_ext
  from IPython.core import display
  from IPython.core import magic_arguments
  from IPython.core.magic import Magics, magics_class, cell_magic
  from IPython.utils.text import dedent
  from ..Shadow import __version__
  from ..Compiler.Errors import CompileError
  from .Inline import cython_inline, load_dynamic
  from .Dependencies import cythonize
label_desc: Use image node_id 2 for calling the CythonMagics obj's underlying member method code with example usage: obj._import_all(module) without return types