code: def test_basic_actor_dag_constructor_invalid_options(
      shared_ray_instance,
  ):
      with pytest.raises(
          ValueError,
          match=r".*quantity of resource num_cpus cannot be negative.*",
      ):
          a1 = Actor.options(num_cpus=-1).bind(10)
          invalid_dag = a1.get.bind()
          ray.get(invalid_dag.execute())
  
imports: import pytest
  import ray
  from ray.dag import PARENT_CLASS_NODE_KEY, PREV_CLASS_METHOD_CALL_KEY
label_desc: Use image node_id 6 for calling a global function with example usage: test_basic_actor_dag_constructor_invalid_options(shared_ray_instance) without return types