code: def _get_client_hook_status_on_thread():
      """Get's the value of `_client_hook_status_on_thread`.
      Since `_client_hook_status_on_thread` is a thread-local variable, we may
      need to add and set the 'status' attribute.
      """
      global _client_hook_status_on_thread
      if not hasattr(_client_hook_status_on_thread, "status"):
          _client_hook_status_on_thread.status = True
      return _client_hook_status_on_thread.status
  
file_path: ray/python/ray/_private/client_mode_hook.py
imports: import os
  import threading
  from contextlib import contextmanager
  from functools import wraps
  from ray._private.auto_init_hook import auto_init_ray
label_desc: Use image node_id 1 for calling a global function with example usage: _get_client_hook_status_on_thread() and returns: _client_hook_status_on_thread