code: def test_write_orc(pdf, hdfs, test_url):
      # Orc writer doesn't support writing unsigned ints
      pdf["Integer2"] = pdf["Integer2"].astype("int64")
      gdf = cudf.from_pandas(pdf)
      if test_url:
          hd_fpath = "hdfs://{}:{}{}/test_orc_writer.orc".format(
              host, port, basedir
          )
      else:
          hd_fpath = f"hdfs://{basedir}/test_orc_writer.orc"
  
      gdf.to_orc(hd_fpath)
  
      assert hdfs.exists(f"{basedir}/test_orc_writer.orc")
      with hdfs.open(f"{basedir}/test_orc_writer.orc", mode="rb") as f:
          got = pd.read_orc(f)
  
      assert_eq(pdf, got)
  
imports: import os
  from io import BytesIO
  import fastavro
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 10 for calling a global function with example usage: test_write_orc(pdf, hdfs, test_url) without return types