code: def test_coercion_aok_list(val, expected, validator_aok):
      v = validator_aok.validate_coerce(val)
      if isinstance(val, (np.ndarray, pd.Series, pd.Index)):
          assert v.dtype == val.dtype
          assert np.array_equal(
              validator_aok.present(v),
              np.array(expected, dtype=np.int32),
          )
      else:
          assert isinstance(v, list)
          assert validator_aok.present(v) == expected
  
imports: import pytest
  from pytest import approx
  from _plotly_utils.basevalidators import IntegerValidator
  import numpy
  import pandas
label_desc: Use image node_id 16 for calling a global function with example usage: test_coercion_aok_list(val, expected, validator_aok) without return types