code: def test_ray_init_credential(monkeypatch):
      def mock_secure_channel(
          conn_str, credentials, options=None, compression=None
      ):
          raise (Stop(credentials))
  
      monkeypatch.setattr(grpc, "secure_channel", mock_secure_channel)
  
      with pytest.raises(Stop) as stop:
          ray.init("ray://127.0.0.1", _credentials=Credentials("test"))
  
      ray.util.disconnect()
      assert stop.value.credentials.name == "test"
  
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 7 for calling a global function with example usage: test_ray_init_credential(monkeypatch) without return types