code: def read_lines_from_file(cls_name, filename):
      """Read lines from file, parsing out header and metadata."""
      with tf.io.gfile.GFile(filename, "rb") as f:
          lines = [tf.compat.as_text(line)[:-1] for line in f]
      header_line = "%s%s" % (_HEADER_PREFIX, cls_name)
      if lines[0] != header_line:
          raise ValueError(
              "File {fname} does not seem to have been created from "
              "{name}.save_to_file.".format(
                  fname=filename, name=cls_name
              )
          )
      metadata_dict = json.loads(lines[1][len(_METADATA_PREFIX) :])
      return lines[2:], metadata_dict
  
imports: from __future__ import unicode_literals
  import abc
  import hashlib
  import json
  import re
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 10 for calling a global function with example usage: read_lines_from_file(cls_name, filename) and returns: lines,  metadata_dict