code: def test_coercion_aok(in_val, expected, validator_extra_aok):
      coerce_val = validator_extra_aok.validate_coerce(in_val)
      if isinstance(in_val, (list, tuple)):
          expected == coerce_val
          validator_extra_aok.present(coerce_val) == tuple(expected)
      else:
          assert np.array_equal(coerce_val, coerce_val)
          assert np.array_equal(
              validator_extra_aok.present(coerce_val), coerce_val
          )
  
imports: import itertools
  import pytest
  from _plotly_utils.basevalidators import FlaglistValidator
  import numpy
label_desc: Use image node_id 17 for calling a global function with example usage: test_coercion_aok(in_val, expected, validator_extra_aok) without return types