code: def restore_aliases(ip):
      staliases = ip.db.get("stored_aliases", {})
      for k, v in staliases.items():
          # print "restore alias",k,v # dbg
          # self.alias_table[k] = v
          ip.alias_manager.define_alias(k, v)
  
file_path: catboost/contrib/python/ipython/py2/IPython/extensions/storemagic.py
imports: from __future__ import print_function
  import inspect, os, sys, textwrap
  from IPython.core.error import UsageError
  from IPython.core.magic import Magics, magics_class, line_magic
  from traitlets import Bool
  from IPython.utils.py3compat import string_types
label_desc: Use image node_id 1 for calling a global function with example usage: restore_aliases(ip) without return types