code: def test_acceptance_aok(val, validator_aok_re):
      # Values should be accepted and returned unchanged
      coerce_val = validator_aok_re.validate_coerce(val)
      if isinstance(val, (np.ndarray, pd.Series)):
          assert np.array_equal(
              coerce_val, np.array(val, dtype=coerce_val.dtype)
          )
      elif isinstance(val, (list, tuple)):
          assert validator_aok_re.present(coerce_val) == tuple(val)
      else:
          assert validator_aok_re.present(coerce_val) == val
  
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 12 for calling a global function with example usage: test_acceptance_aok(val, validator_aok_re) without return types