code: def callZooFunc(bigdl_type, name, *args):
      """Call API in PythonBigDL"""
      gateway = _get_gateway()
      args = [_py2java(gateway, a) for a in args]
      error = Exception("Cannot find function: %s" % name)
      for jinvoker in JavaCreator.instance(bigdl_type, gateway).value:
          # hasattr(jinvoker, name) always return true here,
          # so you need to invoke the method to check if it exist or not
          try:
              api = getattr(jinvoker, name)
              java_result = api(*args)
              result = _java2py(gateway, java_result)
          except Exception as e:
              error = e
              if not (
                  "does not exist" in str(e)
                  and "Method {}".format(name) in str(e)
              ):
                  invalidOperationError(False, str(e), cause=e)
          else:
              return result
      invalidOperationError(False, str(error), cause=error)
  
imports: import functools
  import glob
  import os
  import subprocess
  import tempfile
  import uuid
  from urllib.parse import urlparse
  import numpy
  from bigdl.dllib.utils.common import Sample, JTensor, JavaCreator, _get_gateway, _py2java, _java2py
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 22 for calling a global function with example usage: callZooFunc(bigdl_type, name) and returns: result