code: def _read_records(
      path, file_format=file_adapters.DEFAULT_FILE_FORMAT
  ):
      """Returns (files_names, list_of_records_in_each_file).
  
      Args:
        path: path to tfrecord, omitting suffix.
        file_format: format of the record files.
      """
      # Ignore _index.json files.
      paths = sorted(tf.io.gfile.glob("%s-*-of-*" % path))
      paths = [
          p
          for p in paths
          if not p.endswith(writer_lib._INDEX_PATH_SUFFIX)
      ]
      all_recs = []
      for fpath in paths:
          all_recs.append(
              list(
                  dataset_utils.as_numpy(
                      file_adapters.ADAPTER_FOR_FORMAT[
                          file_format
                      ].make_tf_data(fpath)
                  )
              )
          )
      return [os.path.basename(p) for p in paths], all_recs
  
imports: import json
  import os
  from typing import Optional
  from unittest import mock
  from etils import epath
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_utils
  from tensorflow_datasets.core import example_parser
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import lazy_imports_lib
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import writer
  from tensorflow_datasets.core.utils import shard_utils
  from tensorflow_datasets.core.writer import _ShardSpec
label_desc: Use image node_id 1 for calling a global function with example usage: _read_records(path, file_format) and returns: unknown,  all_recs