code: def test_orc_roundtrip_aggregate_files(tmpdir, split_stripes):
      tmp = str(tmpdir)
      data = pd.DataFrame(
          {
              "a": np.arange(100, dtype=np.float64),
              "b": np.random.choice(["cat", "dog", "mouse"], size=100),
          }
      )
      df = dd.from_pandas(data, npartitions=8)
      df.to_orc(tmp, write_index=False)
      df2 = dd.read_orc(
          tmp, split_stripes=split_stripes, aggregate_files=True
      )
  
      # Check that we have the expected partition count
      # and that the data is correct
      if split_stripes:
          assert df2.npartitions == df.npartitions / int(split_stripes)
      else:
          assert df2.npartitions == df.npartitions
      assert_eq(data, df2, check_index=False)
  
file_path: dask/dask/dataframe/io/tests/test_orc.py
imports: from __future__ import annotations
  import glob
  import os
  import shutil
  import tempfile
  import numpy
  import pandas
  import pytest
  import dask.dataframe
  from dask.dataframe.optimize import optimize_dataframe_getitem
  from dask.dataframe.utils import assert_eq
label_desc: Use image node_id 6 for calling a global function with example usage: test_orc_roundtrip_aggregate_files(tmpdir, split_stripes) without return types