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