code: def get(cls, initialize=True):
      if RayContext._active_ray_context:
          ray_ctx = RayContext._active_ray_context
          if initialize and not ray_ctx.initialized:
              ray_ctx.init()
          return ray_ctx
      else:
          raise Exception(
              "No active RayContext. Please create a RayContext and init it first"
          )
  
imports: import os
  import re
  import subprocess
  import time
  import uuid
  import random
  import warnings
  import tempfile
  import filelock
  import multiprocessing
  from packaging import version
  from zoo.ray.process import session_execute, ProcessMonitor
  from zoo.ray.utils import is_local
  from zoo.ray.utils import resource_to_bytes
  from zoo.ray.utils import get_parent_pid
label_desc: Use image node_id 2 for calling the RayContext obj's underlying member method code with example usage: obj.get(cls, initialize) and returns: ray_ctx