code: def start_ray():
      ray.init(log_to_driver=False, local_mode=True)
      _register_all()
      yield
      ray.shutdown()
  
imports: import click
  import os
  import pytest
  import random
  import subprocess
  import sys
  import time
  from unittest import mock
  import ray
  import ray.train
  from ray import tune
  from ray.rllib import _register_all
  from ray.tune.cli import commands
  from ray.tune.result import CONFIG_PREFIX
  from ray.train.tests.util import create_dict_checkpoint
label_desc: Use image node_id 1 for calling a global function with example usage: start_ray() without return types