code: def test_rejection_by_element_aok(val, validator_aok):
      with pytest.raises(ValueError) as validation_failure:
          validator_aok.validate_coerce(val)
  
      assert "Invalid element(s)" in str(validation_failure.value)
  
file_path: plotly.py/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py
imports: import pytest
  import numpy
  import pandas
  from _plotly_utils.basevalidators import EnumeratedValidator
label_desc: Use image node_id 11 for calling a global function with example usage: test_rejection_by_element_aok(val, validator_aok) without return types