code: def _read_tfrecord_examples(filename):
      """Returns a dict with Examples read from a TFRecord file and keyed by ID."""
      result = {}
      for raw_record in tf.data.TFRecordDataset([filename]):
          tf_example = tf.train.Example()
          tf_example.ParseFromString(raw_record.numpy())
          id_feature = tf_example.features.feature["id"].bytes_list
          result[id_feature.value[0].decode("utf-8")] = tf_example
      return result
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from neural_structured_learning.tools import graph_utils
  from neural_structured_learning.tools import pack_nbrs
  import tensorflow
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling a global function with example usage: _read_tfrecord_examples(filename) and returns: result