code: def pdf(request):
      types = NUMERIC_TYPES + DATETIME_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 = "test_index"
  
      return test_pdf
  
imports: import copy
  import gzip
  import itertools
  import os
  from io import BytesIO, StringIO
  from pathlib import Path
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, TIMEDELTA_TYPES, assert_eq
label_desc: Use image node_id 2 for calling a global function with example usage: pdf(request) and returns: test_pdf