code: def test_node_label_scheduling_invalid_paramter(call_ray_start):
      ray.init(address=call_ray_start)
      with pytest.raises(
          ValueError,
          match="Type of value in position 0 for the In operator must be str",
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(
                  {"gpu_type": In(123)}
              )
          )
  
      with pytest.raises(
          ValueError,
          match="Type of value in position 0 for the NotIn operator must be str",
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(
                  {"gpu_type": NotIn(123)}
              )
          )
  
      with pytest.raises(
          ValueError,
          match="The variadic parameter of the In operator must be a non-empty tuple",
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(
                  {"gpu_type": In()}
              )
          )
  
      with pytest.raises(
          ValueError,
          match="The variadic parameter of the NotIn operator must be a non-empty tuple",
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(
                  {"gpu_type": NotIn()}
              )
          )
  
      with pytest.raises(
          ValueError, match="The soft parameter must be a map"
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(
                  hard=None, soft=["1"]
              )
          )
  
      with pytest.raises(
          ValueError,
          match="The map key of the hard parameter must be of type str",
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(
                  {111: "1111"}
              )
          )
  
      with pytest.raises(
          ValueError,
          match="must be one of the `In`, `NotIn`, `Exists` or `DoesNotExist`",
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(
                  {"gpu_type": "1111"}
              )
          )
  
      with pytest.raises(
          ValueError,
          match="The `hard` and `soft` parameter "
          "of NodeLabelSchedulingStrategy cannot both be empty.",
      ):
          MyActor.options(
              scheduling_strategy=NodeLabelSchedulingStrategy(hard={})
          )
  
file_path: ray/python/ray/tests/test_node_label_scheduling_strategy.py
imports: import os
  import sys
  import pytest
  import ray
  from ray.util.scheduling_strategies import In, NotIn, Exists, DoesNotExist, NodeLabelSchedulingStrategy
label_desc: Use image node_id 6 for calling a global function with example usage: test_node_label_scheduling_invalid_paramter(call_ray_start) without return types