code: def ray_cluster_manager():
      """
      Used not as fixture in case we want to set RAY_ADDRESS first.
      """
      subprocess.check_output(["ray", "start", "--head"])
      try:
          yield
      finally:
          subprocess.check_output(["ray", "stop", "--force"])
  
imports: from contextlib import contextmanager
  import ray
  import json
  import os
  import logging
  import sys
  import subprocess
  from typing import Optional, Tuple
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: ray_cluster_manager() without return types