code: def test_empty_decorator(serve_instance):
      @serve.deployment
      def func(*args):
          return "hi"
  
      @serve.deployment
      class Class:
          def ping(self, *args):
              return "pong"
  
      assert func.name == "func"
      assert Class.name == "Class"
      func_handle = serve.run(func.bind())
      assert func_handle.remote().result() == "hi"
  
      class_handle = serve.run(Class.bind())
      assert class_handle.ping.remote().result() == "pong"
  
imports: import os
  import sys
  import time
  from collections import defaultdict
  from typing import Callable
  import pytest
  import requests
  import ray
  from ray import serve
  from ray._private.pydantic_compat import ValidationError
  from ray._private.test_utils import SignalActor
  from ray.serve._private.utils import get_random_string
  from ray.serve.exceptions import RayServeException
label_desc: Use image node_id 2 for calling a global function with example usage: test_empty_decorator(serve_instance) and returns: str, str