code: def get_global_func_on_rpc_session(
      session: RPCSession,
      name: str,
      extra_error_msg: Optional[str] = None,
  ) -> PackedFunc:
      """Get a PackedFunc from the global registry from an RPCSession.
  
      Parameters
      ----------
      session : RPCSession
          The RPCSession to be retrieved from
      name : str
          The name of the PackedFunc
      extra_error_msg : Optional[str]
          Extra information to provide in the error message
  
      Returns
      -------
      result : PackedFunc
          The result
      """
      try:
          result = session.get_function(name)
      except AttributeError as error:
          error_msg = f'Unable to find function "{name}" on the remote RPC server.'
          if extra_error_msg:
              error_msg = f"{error_msg} {extra_error_msg}"
          raise AttributeError(error_msg) from error
      return result
  
imports: import ctypes
  import os
  import shutil
  from typing import Any, Callable, List, Optional, Union
  import numpy
  import psutil
  from tvm._ffi import get_global_func, register_func
  from tvm.error import TVMError
  from tvm.ir import Array, IRModule, Map
  from tvm.rpc import RPCSession
  from tvm.runtime import PackedFunc, String
  from tvm.tir import FloatImm, IntImm
label_desc: Use image node_id 7 for calling a global function with example usage: get_global_func_on_rpc_session(session, name, extra_error_msg) and returns: result