code: def test_unknown_divisions_error():
      df = pd.DataFrame({"x": [1, 2, 3]})
      ddf = dd.from_pandas(df, npartitions=2, sort=False)
      try:
          ddf.x.resample("1m").mean()
          assert False
      except ValueError as e:
          assert "divisions" in str(e)
  
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 10 for calling a global function with example usage: test_unknown_divisions_error() without return types