code: def test_rejection_value(val, validator):
      with pytest.raises(ValueError) as validation_failure:
          validator.validate_coerce(val)
  
      assert "Invalid value" in str(validation_failure.value)
  
imports: import pytest
  from _plotly_utils.basevalidators import SubplotidValidator
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_rejection_value(val, validator) without return types