code: def pdf(request):
      types = NUMERIC_TYPES + ["bool"]
      nrows = request.param
  
      # Create a pandas dataframe with random data of mixed types
      test_pdf = pd.DataFrame(
          {
              f"col_{typ}": np.random.randint(0, nrows, nrows).astype(
                  typ
              )
              for typ in types
          }
      )
      # Delete the name of the column index, and rename the row index
      test_pdf.columns.name = None
      test_pdf.index.name = "index"
  
      # Create non-numeric categorical data otherwise may get typecasted
      data = [
          ascii_letters[np.random.randint(0, 52)] for i in range(nrows)
      ]
      test_pdf["col_category"] = pd.Series(data, dtype="category")
  
      # Feather can't handle indexes properly
      test_pdf = test_pdf.reset_index(drop=True)
      test_pdf.index.name = None
  
      return test_pdf
  
file_path: cudf/python/cudf/cudf/tests/test_feather.py
imports: import os
  from string import ascii_letters
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.testing._utils import NUMERIC_TYPES, assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: pdf(request) and returns: test_pdf