code: def test_data_array_validator_dates_series(
      data_array_validator, datetime_pandas, dates_array
  ):
      res = data_array_validator.validate_coerce(datetime_pandas)
  
      # Check type
      assert isinstance(res, np.ndarray)
  
      # Check dtype
      assert res.dtype == "object"
  
      # Check values
      np.testing.assert_array_equal(res, dates_array)
  
imports: import pytest
  import numpy
  import pandas
  from datetime import datetime
  from _plotly_utils.basevalidators import NumberValidator, IntegerValidator, DataArrayValidator, ColorValidator
label_desc: Use image node_id 18 for calling a global function with example usage: test_data_array_validator_dates_series(data_array_validator, datetime_pandas, dates_array) without return types