code: def get_obj(f, argfile=None, argstr=None, args=(), kwargs=None):
      """
      XXX: document me
      """
      if kwargs is None:
          kwargs = {}
      if argfile is not None:
          argstr = open(argfile).read()
      if argstr is not None:
          argd = pickler.loads(argstr)
      else:
          argd = {}
      args = args + argd.get("args", ())
      kwargs.update(argd.get("kwargs", {}))
      return json_call(f, args=args, kwargs=kwargs)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from future import standard_library
  from builtins import str
  from builtins import range
  from past.builtins import basestring
  from past.utils import old_div
  import datetime
  import numpy
  import logging
  import os
  import shutil
  import numpy
  from .None import pyll
  from contextlib import contextmanager
label_desc: Use image node_id 5 for calling a global function with example usage: get_obj(f, argfile, argstr, args, kwargs) and returns: json_call