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