code: def _serialize_and_write_fn(pcoll, output_path):
      _ = (
          pcoll
          | beam.Map(pickle.dumps)
          | beam.io.WriteToTFRecord(output_path)
      )
  
file_path: data-validation/tensorflow_data_validation/utils/io_util.py
imports: import os
  import pickle
  from typing import Any, Iterator, List, Text, Union
  import uuid
  import apache_beam
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: _serialize_and_write_fn(pcoll, output_path) without return types