code: def _get_builder_from_address(
      address: Optional[str],
  ) -> ClientBuilder:
      if address == "local":
          return _LocalClientBuilder("local")
      if address is None:
          # NOTE: This is not placed in `Node::get_temp_dir_path`, because
          # this file is accessed before the `Node` object is created.
          address = (
              ray._private.services.canonicalize_bootstrap_address(
                  address
              )
          )
          return _LocalClientBuilder(address)
      module_string, inner_address = _split_address(address)
      try:
          module = importlib.import_module(module_string)
      except Exception as e:
          raise RuntimeError(
              f"Module: {module_string} does not exist.\n"
              f"This module was parsed from Address: {address}"
          ) from e
      assert "ClientBuilder" in dir(
          module
      ), f"Module: {module_string} does not have ClientBuilder."
      return module.ClientBuilder(inner_address)
  
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 2 for calling a global function with example usage: _get_builder_from_address(address) and returns: module, _LocalClientBuilder, _LocalClientBuilder