docstr: Tests where remove_anomaly_types modifies the Anomalies proto.
docstr_tok: ["Tests","where","remove_anomaly_types","modifies","the","Anomalies","proto","."]
code: def test_remove_anomaly_types_changes_proto(
      self,
      anomaly_types_to_remove,
      input_anomalies_proto_text,
      expected_anomalies_proto_text,
  ):
      """Tests where remove_anomaly_types modifies the Anomalies proto."""
      input_anomalies_proto = text_format.Parse(
          input_anomalies_proto_text, anomalies_pb2.Anomalies()
      )
      expected_anomalies_proto = text_format.Parse(
          expected_anomalies_proto_text, anomalies_pb2.Anomalies()
      )
      anomalies_util.remove_anomaly_types(
          input_anomalies_proto, anomaly_types_to_remove
      )
      compare.assertProtoEqual(
          self, input_anomalies_proto, expected_anomalies_proto
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  from absl.testing import absltest
  from absl.testing import parameterized
  import pyarrow
  from tensorflow_data_validation.utils import anomalies_util
  from google.protobuf import text_format
  from tensorflow.python.util.protobuf import compare
  from tensorflow_metadata.proto.v0 import anomalies_pb2
label_desc: Use image node_id 1 for calling the AnomaliesUtilTest obj's underlying member method code with example usage: obj.test_remove_anomaly_types_changes_proto(anomaly_types_to_remove, input_anomalies_proto_text, expected_anomalies_proto_text) without return types