In Apache Beam, when you write out a text file to a blob store using:
beam.io.WriteToText('gs://somebucket/somedir/csv/train')