code: def _validate_label_match_operator_values(values, operator):
      if not values:
          raise ValueError(
              f"The variadic parameter of the {operator} operator"
              f' must be a non-empty tuple: e.g. {operator}("value1", "value2").'
          )
  
      index = 0
      for value in values:
          if not isinstance(value, str):
              raise ValueError(
                  f"Type of value in position {index} for the {operator} operator "
                  f'must be str (e.g. {operator}("value1", "value2")) '
                  f"but got {str(value)} of type {type(value)}."
              )
          index = index + 1
  
imports: from typing import Dict, Union, Optional, TYPE_CHECKING
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_label_match_operator_values(values, operator) without return types