code: def datetime_pandas(request, pandas_type, dates_array):
      return pandas_type(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 11 for calling a global function with example usage: datetime_pandas(request, pandas_type, dates_array) and returns: pandas_type