code: def test_acceptance(validator):
      val = Marker(color="green", size=10)
      res = validator.validate_coerce(val)
  
      assert isinstance(res, Marker)
      assert res.color == "green"
      assert res.size == 10
  
file_path: plotly.py/packages/python/plotly/_plotly_utils/tests/validators/test_compound_validator.py
imports: import pytest
  from _plotly_utils.basevalidators import CompoundValidator
  from plotly.graph_objs.scatter import Marker
label_desc: Use image node_id 2 for calling a global function with example usage: test_acceptance(validator) without return types