code: def test_loc_on_pandas_datetimes():
      df = pd.DataFrame(
          {"x": [1, 2, 3]},
          index=list(map(pd.Timestamp, ["2014", "2015", "2016"])),
      )
      a = dd.from_pandas(df, 2)
      a.divisions = tuple(map(pd.Timestamp, a.divisions))
  
      assert_eq(a.loc["2014":"2015"], a.loc["2014":"2015"])
  
imports: from __future__ import annotations
  import contextlib
  import numpy
  import pandas
  import pytest
  import dask
  import dask.dataframe
  from dask.base import tokenize
  from dask.dataframe._compat import PANDAS_GE_210, PANDAS_GE_220, IndexingError, tm
  from dask.dataframe.indexing import _coerce_loc_index
  from dask.dataframe.utils import assert_eq, make_meta, pyarrow_strings_enabled
label_desc: Use image node_id 18 for calling a global function with example usage: test_loc_on_pandas_datetimes() without return types