code: def client(
      address: Optional[str] = None,
      _deprecation_warn_enabled: bool = True,
  ) -> ClientBuilder:
      """
      Creates a ClientBuilder based on the provided address. The address can be
      of the following forms:
  
          * None: Connects to or creates a local cluster and connects to it.
          * ``"local"``: Creates a new cluster locally and connects to it.
          * ``"IP:Port"``: Connects to a Ray Client Server at the given address.
          * ``"module://inner_address"``: load module.ClientBuilder & pass
              inner_address
  
      The _deprecation_warn_enabled flag enables deprecation warnings, and is
      for internal use only. Set it to False to suppress client deprecation
      warnings.
      """
      env_address = os.environ.get(RAY_ADDRESS_ENVIRONMENT_VARIABLE)
      if env_address and address is None:
          logger.debug(
              f"Using address ({env_address}) instead of auto-detection "
              f"because {RAY_ADDRESS_ENVIRONMENT_VARIABLE} is set."
          )
          address = env_address
  
      builder = _get_builder_from_address(address)
      # Disable client deprecation warn when ray.client is used internally
      builder._deprecation_warn_enabled = _deprecation_warn_enabled
      return builder
  
imports: import importlib
  import inspect
  import json
  import logging
  import os
  import sys
  import warnings
  from dataclasses import dataclass
  from typing import Any, Dict, Optional, Tuple
  import ray.util.client_connect
  from ray._private.ray_constants import RAY_ADDRESS_ENVIRONMENT_VARIABLE, RAY_NAMESPACE_ENVIRONMENT_VARIABLE, RAY_RUNTIME_ENV_ENVIRONMENT_VARIABLE
  from ray._private.utils import check_ray_client_dependencies_installed, split_address
  from ray._private.worker import BaseContext
  from ray._private.worker import init
  from ray.job_config import JobConfig
  from ray.util.annotations import Deprecated, PublicAPI
label_desc: Use image node_id 3 for calling a global function with example usage: client(address, _deprecation_warn_enabled) and returns: builder