code: def test_bind_failure(shared_ray_instance):
      """Verify if an actor loses a reference,
      it fails with correct error messages.
      """
  
      @ray.remote
      class A:
          def f(self):
              pass
  
      with pytest.raises(RuntimeError):
          ray.get(A.remote().f.bind().execute())
  
file_path: ray/python/ray/dag/tests/test_output_node.py
imports: import pytest
  import ray
  from ray.dag.input_node import InputNode
  from ray.dag.output_node import MultiOutputNode
  from ray.util.state import list_tasks
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 6 for calling a global function with example usage: test_bind_failure(shared_ray_instance) without return types