code: def test_unsupported_remote():
      @ray.remote
      class Actor:
          def ping(self):
              return "hello"
  
      with pytest.raises(
          AttributeError, match="'Actor' has no attribute 'remote'"
      ):
          _ = Actor.bind().remote()
  
      @ray.remote
      def func():
          return 1
  
      with pytest.raises(
          AttributeError, match=r"\.remote\(\) cannot be used on"
      ):
          _ = func.bind().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 11 for calling a global function with example usage: test_unsupported_remote() and returns: int, str