code: def test_nonexistent_method_sync(serve_instance):
      @serve.deployment
      class A:
          def exists(self):
              pass
  
      handle = serve.run(A.bind()).options(use_new_handle_api=True)
      with pytest.raises(RayServeException) as excinfo:
          handle.does_not_exist.remote().result()
  
      exception_string = str(excinfo.value)
      assert "'does_not_exist'" in exception_string
      assert "Available methods: ['exists']" in exception_string
  
imports: import asyncio
  import concurrent.futures
  import threading
  import pytest
  import requests
  import ray
  from ray import serve
  from ray.serve._private.common import RequestProtocol
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME
  from ray.serve._private.router import PowerOfTwoChoicesReplicaScheduler
  from ray.serve.exceptions import RayServeException
  from ray.serve.handle import DeploymentHandle, _HandleOptions
label_desc: Use image node_id 10 for calling a global function with example usage: test_nonexistent_method_sync(serve_instance) without return types