code: def write_test_protos(self, filename):
      protos = [
          reference_pb2.ContigInfo(name=str(i)) for i in range(10)
      ]
      path = test_utils.test_tmpfile(filename)
      tfrecord.write_tfrecords(protos, path)
      return protos, path
  
file_path: deepvariant/third_party/nucleus/io/tfrecord_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import types
  from absl.testing import absltest
  from absl.testing import parameterized
  from third_party.nucleus.io import tfrecord
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.testing import test_utils
label_desc: Use image node_id 1 for calling the IOTest obj's underlying member method code with example usage: obj.write_test_protos(filename) and returns: protos,  path