code: def test_threshold_config(threshold_pairs):
      threshold_type, threshold_value, valid = threshold_pairs
      if valid:
          threshold = ThresholdConfig(threshold_type, threshold_value)
          assert threshold.type.value == threshold_type
          assert threshold.value == threshold_value
      else:
          with pytest.raises(ValueError):
              ThresholdConfig(threshold_type, threshold_value)
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_threshold_config(threshold_pairs) without return types