code: def load_anomalies_binary(
      input_path: Text,
  ) -> anomalies_pb2.Anomalies:
      """Loads the Anomalies proto stored in binary format in the input path.
  
      Args:
        input_path: File path from which to load the Anomalies proto.
  
      Returns:
        An Anomalies protocol buffer.
      """
      anomalies_proto = anomalies_pb2.Anomalies()
  
      anomalies_proto.ParseFromString(
          io_util.read_file_to_string(input_path, binary_mode=True)
      )
  
      return anomalies_proto
  
file_path: data-validation/tensorflow_data_validation/utils/anomalies_util.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Iterable, FrozenSet, List, Text, Tuple
  import pyarrow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import io_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import anomalies_pb2
label_desc: Use image node_id 6 for calling a global function with example usage: load_anomalies_binary(input_path) and returns: anomalies_proto