code: def test_to_orc(tmpdir, dtypes, compression, compute):
      # Create cudf and dask_cudf dataframes
      df = cudf.datasets.randomdata(nrows=10, dtypes=dtypes, seed=1)
      df = df.set_index("index").sort_index()
      ddf = dask_cudf.from_cudf(df, npartitions=3)
  
      # Write cudf dataframe as single file
      # (preserve index by setting to column)
      fname = tmpdir.join("test.orc")
      df.reset_index().to_orc(fname, compression=compression)
  
      # Write dask_cudf dataframe as multiple files
      # (preserve index by `write_index=True`)
      to = ddf.to_orc(
          str(tmpdir),
          write_index=True,
          compression=compression,
          compute=compute,
      )
  
      if not compute:
          to.compute()
  
      # Read back cudf dataframe
      df_read = cudf.read_orc(fname).set_index("index")
  
      # Read back dask_cudf dataframe
      paths = glob.glob(str(tmpdir) + "/part.*.orc")
      ddf_read = dask_cudf.read_orc(paths).set_index("index")
  
      # Make sure the dask_cudf dataframe matches
      # the cudf dataframes (df and df_read)
      dd.assert_eq(df, ddf_read)
      dd.assert_eq(df_read, ddf_read)
  
file_path: cudf/python/dask_cudf/dask_cudf/io/tests/test_orc.py
imports: import glob
  import os
  from datetime import datetime, timezone
  import pytest
  import dask
  from dask import dataframe
  import cudf
  import dask_cudf
label_desc: Use image node_id 8 for calling a global function with example usage: test_to_orc(tmpdir, dtypes, compression, compute) without return types