code: def test_write_parquet_partitioned(tmpdir, pdf, hdfs, test_url):
      pdf.to_parquet(
          path=tmpdir.join("pandas_parquet_writer_partitioned.parquet"),
          index=False,
          partition_cols=["Integer", "Boolean"],
      )
      gdf = cudf.from_pandas(pdf)
      if test_url:
          hd_fpath = (
              "hdfs://{}:{}{}/test_parquet_partitioned.parquet".format(
                  host, port, basedir
              )
          )
      else:
          hd_fpath = (
              f"hdfs://{basedir}/test_parquet_partitioned.parquet"
          )
      # Clear data written from previous runs
      hdfs.rm(
          f"{basedir}/test_parquet_partitioned.parquet", recursive=True
      )
      gdf.to_parquet(
          hd_fpath, index=False, partition_cols=["Integer", "Boolean"]
      )
  
      assert hdfs.exists(f"{basedir}/test_parquet_partitioned.parquet")
      got = pd.read_parquet(hd_fpath)
      expect = pd.read_parquet(
          tmpdir.join("pandas_parquet_writer_partitioned.parquet")
      )
      assert_eq(expect, 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 7 for calling a global function with example usage: test_write_parquet_partitioned(tmpdir, pdf, hdfs, test_url) without return types