code: def generate_avro(src_file: str, output_file: str):
      """Generates avro file based on src file.
  
      Args:
        src_file: path to Chicago taxi dataset.
        output_file: output path for avro file.
      """
      df = pd.read_csv(src_file)
      # Replaces NaN's with None's for avroWriter to interpret null values
      df = df.where((pd.notnull(df)), None)
  
      records = df.to_dict(orient="records")
  
      parsed_schema = fastavro.parse_schema(get_schema())
      with open(output_file, "wb") as f:
          fastavro.writer(f, parsed_schema, records)
  
imports: import fastavro
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: generate_avro(src_file, output_file) without return types