code: def update_generic(a, b):
      for type_check, update in UPDATE_RULES:
          if type_check(a, b):
              update(a, b)
              return True
      return False
  
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 5 for calling a global function with example usage: update_generic(a, b) and returns: False, True