code: def test_unsupported_bind():
      @serve.deployment
      class Actor:
          def ping(self):
              return "hello"
  
      with pytest.raises(
          AttributeError, match=r"\.bind\(\) cannot be used again on"
      ):
          _ = Actor.bind().bind()
  
      with pytest.raises(
          AttributeError, match=r"\.bind\(\) cannot be used again on"
      ):
          _ = Actor.bind().ping.bind().bind()
  
      with pytest.raises(
          AttributeError,
          match=r"\.remote\(\) cannot be used on ClassMethodNodes",
      ):
          actor = Actor.bind()
          _ = actor.ping.remote()
  
imports: import array
  import asyncio
  import os
  import sys
  from typing import Dict, Union
  import pytest
  import requests
  import starlette.requests
  from ray import serve
  from ray.serve._private.deployment_graph_build import build
  from ray.serve.handle import DeploymentHandle
label_desc: Use image node_id 17 for calling a global function with example usage: test_unsupported_bind() and returns: str