code: def test_rejection_type(validator):
      val = 37
  
      with pytest.raises(ValueError) as validation_failure:
          validator.validate_coerce(val)
  
      assert "Invalid value" in str(validation_failure.value)
  
file_path: plotly.py/packages/python/plotly/_plotly_utils/tests/validators/test_compoundarray_validator.py
imports: import pytest
  from _plotly_utils.basevalidators import CompoundArrayValidator
  from plotly.graph_objs.layout import Image
label_desc: Use image node_id 5 for calling a global function with example usage: test_rejection_type(validator) without return types