code: def test_acceptance_array(val, validator_aok):
      coerce_val = validator_aok.validate_coerce(val)
      if isinstance(val, np.ndarray):
          assert isinstance(coerce_val, np.ndarray)
          assert coerce_val.dtype == "object"
          assert np.array_equal(coerce_val, val)
      elif isinstance(val, (list, tuple)):
          assert coerce_val == list(val)
          assert validator_aok.present(coerce_val) == tuple(val)
      else:
          assert coerce_val == val
          assert validator_aok.present(coerce_val) == val
  
imports: import pytest
  from _plotly_utils.basevalidators import AnyValidator
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_acceptance_array(val, validator_aok) without return types