code: def test_auto_init_non_client(call_ray_start):
      address = call_ray_start
      with unittest.mock.patch.dict(
          os.environ, {"RAY_ADDRESS": address}
      ):
          res = ray.put(300)
          # Ensure this is not a client.connect()
          assert not isinstance(res, ClientObjectRef)
          ray.shutdown()
  
      addr = "localhost:{}".format(address.split(":")[-1])
      with unittest.mock.patch.dict(os.environ, {"RAY_ADDRESS": addr}):
          res = ray.put(300)
          # Ensure this is not a client.connect()
          assert not isinstance(res, ClientObjectRef)
  
imports: import os
  import sys
  import unittest.mock
  import signal
  import subprocess
  import grpc
  import pytest
  import ray
  import ray._private.services
  from ray.client_builder import ClientContext
  from ray.cluster_utils import Cluster
  from ray.util.client.common import ClientObjectRef
  from ray.util.client.ray_client_helpers import ray_start_client_server
  from ray.util.client.worker import Worker
  from ray._private.test_utils import wait_for_condition, enable_external_redis
label_desc: Use image node_id 8 for calling a global function with example usage: test_auto_init_non_client(call_ray_start) without return types