code: def test_input_validation(shutdown_only):
      # Verify force=True is not working.
      @ray.remote
      class A:
          async def f(self):
              pass
  
      a = A.remote()
      with pytest.raises(
          ValueError, match="force=True is not supported"
      ):
          ray.cancel(a.f.remote(), force=True)
  
imports: import asyncio
  import os
  import sys
  import time
  from collections import defaultdict
  import pytest
  import ray
  from ray._private.test_utils import SignalActor, wait_for_condition
  from ray.exceptions import TaskCancelledError
  from ray.util.state import list_tasks
label_desc: Use image node_id 1 for calling a global function with example usage: test_input_validation(shutdown_only) without return types