code: def parse_tfrecord_np(record):
      ex = tf.train.Example()
      ex.ParseFromString(record)
      shape = ex.features.feature[
          "shape"
      ].int64_list.value  # pylint: disable=no-member
      data = ex.features.feature["data"].bytes_list.value[
          0
      ]  # pylint: disable=no-member
      return np.fromstring(data, np.uint8).reshape(shape)
  
file_path: insightface/reconstruction/ostec/external/stylegan2/training/dataset.py
imports: import os
  import glob
  import numpy
  import tensorflow
  import dnnlib
  import dnnlib.tflib
label_desc: Use image node_id 9 for calling the TFRecordDataset obj's underlying member method code with example usage: obj.parse_tfrecord_np(record) and returns: np