code: def _extract_metadata_from_first_example(filename: str) -> Tuple[int]:
      """Extracts the image shape from the first example."""
      raw_example = next(
          iter(
              tf.data.TFRecordDataset(
                  filenames=filename,
                  compression_type=_filename_to_compression(filename),
              )
          )
      )
      example = tf.train.Example.FromString(raw_example.numpy())
  
      return tuple(
          example.features.feature["image/shape"].int64_list.value
      )
  
file_path: scenic/scenic/projects/svvit/datasets/pileup_coverage_dataset.py
imports: import functools
  from typing import Optional, Tuple
  from absl import logging
  from flax import jax_utils
  import jax
  import jax.numpy
  from scenic.dataset_lib import dataset_utils
  from scenic.dataset_lib import datasets
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _extract_metadata_from_first_example(filename) and returns: tuple