code: def __catch_and_log__(func, *args, **kargs):
      try:
          return func(*args, **kargs)
      except Exception as error:
          logging.getLogger(__name__).error(error)
          raise
  
file_path: turicreate/src/python/turicreate/_connect/main.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .._cython.cy_unity import UnityGlobalProxy
  from .._cython.cy_server import EmbeddedServer
  import decorator
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: __catch_and_log__(func) and returns: func