code: def test_deploy_function_no_params_call_with_param(
      serve_instance, use_async
  ):
      if use_async:
          expected_output = "async!"
          deployment_cls = async_d
      else:
          expected_output = "sync!"
          deployment_cls = sync_d
  
      handle = serve.run(deployment_cls.bind()).options(
          use_new_handle_api=True,
      )
  
      assert (
          requests.get(
              f"http://localhost:8000/{deployment_cls.name}"
          ).text
          == expected_output
      )
      with pytest.raises(
          TypeError,
          match=r"\(\) takes 0 positional arguments but 1 was given",
      ):
          handle.remote(1).result()
  
      with pytest.raises(
          TypeError, match=r"\(\) got an unexpected keyword argument"
      ):
          handle.remote(key=1).result()
  
imports: import asyncio
  import os
  import sys
  from typing import Dict, Optional
  import pytest
  import requests
  import starlette.responses
  from fastapi import FastAPI
  import ray
  from ray import serve
  from ray._private.pydantic_compat import BaseModel, ValidationError
  from ray._private.test_utils import SignalActor, wait_for_condition
  from ray.serve._private.api import call_app_builder_with_args_if_necessary
  from ray.serve._private.common import DeploymentID
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME
  from ray.serve.deployment import Application
  from ray.serve.exceptions import RayServeException
  from ray.serve.handle import DeploymentHandle, RayServeHandle
label_desc: Use image node_id 11 for calling a global function with example usage: test_deploy_function_no_params_call_with_param(serve_instance, use_async) without return types