code: def test_rejection_value(validator):
      val = [dict(opacity=0.5, sizex=120, bogus=100)]
  
      with pytest.raises(ValueError) as validation_failure:
          validator.validate_coerce(val)
  
      assert (
          "Invalid property specified for object of type "
          "plotly.graph_objs.layout.Image"
          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 7 for calling a global function with example usage: test_rejection_value(validator) without return types