code: def test_series_resample_does_not_evenly_divide_day():
      index = pd.date_range(
          "2012-01-02 00:00:00", "2012-01-02 01:00:00", freq="min"
      )
      index = index.union(
          pd.date_range(
              "2012-01-02 06:00:00", "2012-01-02 08:00:00", freq="min"
          )
      )
      s = pd.Series(range(len(index)), index=index)
      ds = dd.from_pandas(s, npartitions=5)
      # Frequency doesn't evenly divide day
      expected = s.resample("57min").mean()
      result = ds.resample("57min").mean().compute()
  
      assert_eq(result, expected)
  
imports: from __future__ import annotations
  from itertools import product
  import pandas
  import pytest
  import dask.dataframe
  from dask.dataframe._compat import PANDAS_GE_220
  from dask.dataframe.utils import assert_eq
label_desc: Use image node_id 9 for calling a global function with example usage: test_series_resample_does_not_evenly_divide_day() without return types