code: def get_raycluster(raycluster: str, namespace: str) -> Dict[str, Any]:
      """Gets the Ray CR with name `raycluster` in namespace `namespace`.
  
      Returns the CR as a nested Dict.
      """
      get_raycluster_output = (
          subprocess.check_output(
              [
                  "kubectl",
                  "-n",
                  namespace,
                  "get",
                  "raycluster",
                  raycluster,
                  "-o",
                  "yaml",
              ]
          )
          .decode()
          .strip()
      )
      return yaml.safe_load(get_raycluster_output)
  
imports: import atexit
  import contextlib
  import logging
  import pathlib
  import subprocess
  import tempfile
  import time
  from typing import Any, Dict, Generator, List, Optional
  import yaml
  import os
  import ray
  from ray.job_submission import JobStatus, JobSubmissionClient
label_desc: Use image node_id 14 for calling a global function with example usage: get_raycluster(raycluster, namespace) and returns: yaml