code: def test_unsupported_bind():
      @ray.remote
      class Actor:
          def ping(self):
              return "hello"
  
      with pytest.raises(
          AttributeError,
          match=r"\.bind\(\) cannot be used again on",
      ):
          actor = Actor.bind()
          _ = actor.bind()
  
      with pytest.raises(
          AttributeError,
          match=r"\.remote\(\) cannot be used on ClassMethodNodes",
      ):
          actor = Actor.bind()
          _ = actor.ping.remote()
  
imports: import pytest
  import ray
  from ray.dag import PARENT_CLASS_NODE_KEY, PREV_CLASS_METHOD_CALL_KEY
label_desc: Use image node_id 10 for calling a global function with example usage: test_unsupported_bind() and returns: str