code: def test_skip_invalid(validator):
      val = [
          dict(opacity="bad_opacity", x=23, sizex=120),
          dict(x=99, bogus={"a": 23}, sizey=300),
      ]
  
      expected = [dict(x=23, sizex=120), dict(x=99, sizey=300)]
  
      res = validator.validate_coerce(val, skip_invalid=True)
      assert [el.to_plotly_json() for el in res] == expected
  
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 8 for calling a global function with example usage: test_skip_invalid(validator) without return types