code: def get_avro_schema(df):
      fields = [
          {"name": col_name, "type": get_avro_dtype_info(col_dtype)}
          for col_name, col_dtype in df.dtypes.items()
      ]
      schema = {"type": "record", "name": "Root", "fields": fields}
      return schema
  
file_path: cudf/python/cudf/cudf/_fuzz_testing/utils.py
imports: import random
  import fastavro
  import numpy
  import pandas
  import pyarrow
  import cudf
  from cudf.testing._utils import assert_eq
  from cudf.utils.dtypes import pandas_dtypes_to_np_dtypes, pyarrow_dtypes_to_pandas_dtypes
label_desc: Use image node_id 6 for calling a global function with example usage: get_avro_schema(df) and returns: schema