code: def test_chunking_univariate_continuous():
      # create some dummy data
      series = pd.Series(
          index=pd.date_range(
              datetime.now(), periods=10_000, freq="1s"
          ),
          data=np.ones(10_000),
      ).rename("1hz_series")
      out = chunk_data(
          data=series, fs_dict={"1hz_series": 1}, copy=True
      )
      assert len(out) == 1
      assert len(out[0][0]) == 10_000
      # as we've returned a copy -> we should not change the original series
      out[0][0][:10] = 0
      assert all(series == 1)
  
file_path: tsflex/tests/test_chunking.py
imports: from datetime import datetime
  import numpy
  import pandas
  import pytest
  from tsflex.chunking import chunk_data
label_desc: Use image node_id 1 for calling a global function with example usage: test_chunking_univariate_continuous() without return types