code: def test_new_cluster_in_ray(stop_ray):
      cluster = new_cluster_in_ray(worker_num=2)
      mt.random.RandomState(0).rand(100, 5).sum().execute()
      cluster.session.execute(
          mt.random.RandomState(0).rand(100, 5).sum()
      )
      mars.execute(mt.random.RandomState(0).rand(100, 5).sum())
      session = new_ray_session(
          address=cluster.address, session_id="abcd", default=True
      )
      session.execute(mt.random.RandomState(0).rand(100, 5).sum())
      mars.execute(mt.random.RandomState(0).rand(100, 5).sum())
      cluster.stop()
  
file_path: mars/mars/deploy/oscar/tests/test_ray_cluster_standalone.py
imports: import pytest
  import mars
  from ....None import tensor
  from ....None import dataframe
  from ....tests.core import require_ray, mock
  from ....utils import lazy_import
  from ..ray import new_cluster_in_ray, new_ray_session, _load_config, new_cluster
label_desc: Use image node_id 1 for calling a global function with example usage: test_new_cluster_in_ray(stop_ray) without return types