code: def test_acceptance(validator):
      val = [Image(opacity=0.5, sizex=120), Image(x=99)]
      res = validator.validate_coerce(val)
      res_present = validator.present(res)
      assert isinstance(res, list)
      assert isinstance(res_present, tuple)
      assert isinstance(res_present[0], Image)
      assert res_present[0].opacity == 0.5
      assert res_present[0].sizex == 120
      assert res_present[0].x is None
  
      assert isinstance(res_present[1], Image)
      assert res_present[1].opacity is None
      assert res_present[1].sizex is None
      assert res_present[1].x == 99
  
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 2 for calling a global function with example usage: test_acceptance(validator) without return types