code: def load_ipython_extension(ip):
      """Load the extension in IPython."""
      auto_reload = AutoreloadMagics(ip)
      ip.register_magics(auto_reload)
      ip.events.register("pre_run_cell", auto_reload.pre_run_cell)
      ip.events.register("post_execute", auto_reload.post_execute_hook)
  
imports: from __future__ import print_function
  import os
  import sys
  import traceback
  import types
  import weakref
  from IPython.utils import openpy
  from IPython.utils.py3compat import PY3
  from IPython.core.magic import Magics, magics_class, line_magic
label_desc: Use image node_id 7 for calling a global function with example usage: load_ipython_extension(ip) without return types