code: def prune_summary(summary, prefixes_to_remove):
      """Removes keys starting with provided prefixes from the dict."""
      ret = {}
      for key in summary.keys():
          report_key = True
          for prefix in prefixes_to_remove:
              if key.startswith(prefix):
                  report_key = False
                  break
          if report_key:
              ret[key] = summary[key]
      return ret
  
file_path: scenic/scenic/projects/vivit/evaluation_lib.py
imports: import os
  from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Union
  from absl import logging
  import flax
  from flax.metrics import tensorboard
  from flax.training import checkpoints
  import jax
  import jax.numpy
  import numpy
  from scenic.train_lib_deprecated import pretrain_utils
  from scenic.train_lib_deprecated import train_utils
  from sklearn.metrics import average_precision_score
  from tensorflow.io import gfile
label_desc: Use image node_id 4 for calling a global function with example usage: prune_summary(summary, prefixes_to_remove) and returns: ret