code: def connect(master_address, distributed_files=[]):
      """Create a global client which connects to the master node.
  
      .. code-block:: python
  
          parl.connect(master_address='localhost:1234')
  
      Args:
          master_address (str): The address of the Master node to connect to.
          distributed_files (list): A list of files to be distributed at all
                                    remote instances(e,g. the configuration
                                    file for initialization) .
  
      Raises:
          Exception: An exception is raised if the master node is not started.
      """
  
      assert len(master_address.split(":")) == 2, (
          "Please input address in " + "{ip}:{port} format"
      )
      assert isinstance(
          distributed_files, list
      ), "`distributed_files` should be a list."
  
      global GLOBAL_CLIENT
      addr = master_address.split(":")[0]
      cur_process_id = os.getpid()
      if GLOBAL_CLIENT is None:
          GLOBAL_CLIENT = Client(
              master_address, cur_process_id, distributed_files
          )
      else:
          if GLOBAL_CLIENT.process_id != cur_process_id:
              GLOBAL_CLIENT = Client(
                  master_address, cur_process_id, distributed_files
              )
      logger.info(
          "Remote actors log url: {}".format(
              GLOBAL_CLIENT.log_monitor_url
          )
      )
  
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 1 for calling a global function with example usage: connect(master_address, distributed_files) without return types