class_docstr: This class stands in as the replacement API for the `import ray` module.
  
  Much like the ray module, this mostly delegates the work to the
  _client_worker. As parts of the ray API are covered, they are piped through
  here or on the client worker API.
class_docstr_tok: ["This","class","stands","in","as","the","replacement","API","for","the","`","import","ray","`","module",".","Much","like","the","ray","module",",","this","mostly","delegates","the","work","to","the","_client_worker",".","As","parts","of","the","ray","API","are","covered",",","they","are","piped","through","here","or","on","the","client","worker","API","."]
code: def is_connected(self, *args, **kwargs):
      return self.get_context().is_connected(*args, **kwargs)
  
imports: import logging
  import os
  import sys
  import threading
  from typing import Any, Dict, List, Optional, Tuple
  import ray._private.ray_constants
  from ray._private.client_mode_hook import _explicitly_disable_client_mode, _explicitly_enable_client_mode
  from ray._private.ray_logging import setup_logger
  from ray.job_config import JobConfig
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 9 for calling the RayAPIStub obj's underlying member method code with example usage: obj.is_connected() and returns: self