class_docstr: A GenomicsWriter that writes to a TFRecord file.
  
  Example usage:
    writer = TFRecordWriter('/tmp/my_output.tfrecord.gz')
    for record in records:
      writer.write(record)
  
  Note that TFRecord files do not need to be wrapped in a "with" block.
class_docstr_tok: ["A","GenomicsWriter","that","writes","to","a","TFRecord","file",".","Example","usage",":","writer","=","TFRecordWriter","(","'\/tmp\/my_output.tfrecord.gz","'",")","for","record","in","records",":","writer.write","(","record",")","Note","that","TFRecord","files","do","not","need","to","be","wrapped","in","a","``","with","''","block","."]
docstr: Writes the proto to the TFRecord file.
docstr_tok: ["Writes","the","proto","to","the","TFRecord","file","."]
code: def write(self, proto):
      """Writes the proto to the TFRecord file."""
      self._writer.write(proto.SerializeToString())
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import errno
  from absl import logging
  from third_party.nucleus.io.python import tfrecord_writer
label_desc: Use image node_id 2 for calling the TFRecordWriter obj's underlying member method code with example usage: obj.write(proto) without return types