code: def ray_local_session_fixture():
      """Initializes Ray and shuts down Ray in local mode.
  
      Yields:
          None: Yield is for purposes of pytest module style.
              All statements before the yield are apart of module setup, and all
              statements after the yield are apart of module teardown.
  
      """
      if not ray.is_initialized():
          ray.init(
              local_mode=True,
              ignore_reinit_error=True,
              log_to_driver=False,
              include_dashboard=False,
          )
      yield
      if ray.is_initialized():
          ray.shutdown()
  
label_desc: Use image node_id 1 for calling a global function with example usage: ray_local_session_fixture() without return types