code: def tf_record_iterator(tfrecord_file, proto):
      """Generator that iterates over protocol buffers in a TFRecord file.
  
      Args:
        tfrecord_file: Path to a TFRecord file containing protocol buffers.
        proto: A protocol buffer class. This type will be used to deserialize the
            protos from the TFRecord file. This will be the output type.
  
      Yields:
        Instances of the given `proto` class from the TFRecord file.
      """
      for raw_bytes in tf.python_io.tf_record_iterator(tfrecord_file):
          yield proto.FromString(raw_bytes)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import inspect
  import os.path
  from magenta.pipelines import statistics
  import six
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling a global function with example usage: tf_record_iterator(tfrecord_file, proto) without return types