code: def test_skip_invalid(validator_nouid):
      val = (
          dict(
              type="scatter",
              mode="lines",
              marker={"color": "green", "bogus": 23},
              line="bad_value",
          ),
          dict(type="box", fillcolor="yellow", bogus=111),
          dict(type="bogus", mode="lines+markers", x=[2, 1, 3]),
      )
  
      expected = [
          dict(type="scatter", mode="lines", marker={"color": "green"}),
          dict(type="box", fillcolor="yellow"),
          dict(type="scatter", mode="lines+markers", x=[2, 1, 3]),
      ]
  
      res = validator_nouid.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_basetraces_validator.py
imports: import pytest
  from _plotly_utils.basevalidators import BaseDataValidator
  from plotly.graph_objs import Scatter, Bar, Box
label_desc: Use image node_id 10 for calling a global function with example usage: test_skip_invalid(validator_nouid) without return types