code: def get_global_client():
      """Get the global client.
  
      To support process-based programming, we will create a new global client in the new process.
  
      Returns:
          The global client.
      """
      global GLOBAL_CLIENT
      assert GLOBAL_CLIENT is not None, (
          "Cannot get the client to submit the"
          + " job, have you connected to the cluster by calling "
          + "parl.connect(master_ip, master_port)?"
      )
  
      cur_process_id = os.getpid()
      if GLOBAL_CLIENT.process_id != cur_process_id:
          GLOBAL_CLIENT = Client(
              GLOBAL_CLIENT.master_address, cur_process_id
          )
      return GLOBAL_CLIENT
  
imports: import cloudpickle
  import datetime
  import os
  import socket
  import sys
  import threading
  import zmq
  import parl
  import time
  import glob
  import multiprocessing
  from parl.utils import to_str, to_byte, get_ip_address, logger, isnotebook
  from parl.remote.utils import get_subfiles_recursively
  from parl.remote import remote_constants
  from parl.remote.grpc_heartbeat import HeartbeatServerThread, HeartbeatServerProcess
  from parl.remote.utils import get_version
label_desc: Use image node_id 2 for calling a global function with example usage: get_global_client() and returns: GLOBAL_CLIENT