code: def test_to_series(index):
      df = pd.DataFrame({"A": np.random.randn(100)}, index=index)
      ddf = dd.from_pandas(df, 10)
  
      expected = df.index.to_series()
      actual = ddf.index.to_series()
  
      assert actual.known_divisions
      assert_eq(expected, actual)
  
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 25 for calling a global function with example usage: test_to_series(index) without return types