code: def test_rejection_values(val, validator_values):
      with pytest.raises(ValueError) as validation_failure:
          validator_values.validate_coerce(val)
  
      assert "Invalid value".format(val=val) in str(
          validation_failure.value
      )
      assert "['foo', 'BAR', '']" in str(validation_failure.value)
  
imports: import pytest
  from _plotly_utils.basevalidators import StringValidator
  import numpy
label_desc: Use image node_id 12 for calling a global function with example usage: test_rejection_values(val, validator_values) without return types