code: def test_get_anomalies_dataframe_with_no_toplevel_description(self):
      anomalies = text_format.Parse(
          """
      anomaly_info {
       key: "feature_1"
       value {
          severity: ERROR
          reason {
            type: ENUM_TYPE_BYTES_NOT_STRING
            short_description: "Bytes not string"
            description: "Expected bytes but got string."
          }
        }
      }
      anomaly_info {
        key: "feature_2"
        value {
          severity: ERROR
          reason {
            type: ENUM_TYPE_UNEXPECTED_STRING_VALUES
            short_description: "Unexpected string values"
            description: "Examples contain values missing from the "
              "schema."
          }
        }
      }
      """,
          anomalies_pb2.Anomalies(),
      )
      actual_output = display_util.get_anomalies_dataframe(anomalies)
      # The resulting DataFrame has a row for each feature and a column for each
      # of the short description and long description.
      self.assertEqual(actual_output.shape, (2, 2))
  
      # Confirm Anomaly short/long description is not empty
      self.assertNotEmpty(actual_output["Anomaly short description"][0])
      self.assertNotEmpty(actual_output["Anomaly long description"][0])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Any, Dict
  from absl.testing import absltest
  from absl.testing import parameterized
  from google.protobuf import text_format
  import pandas
  from tensorflow_data_validation import constants
  from tensorflow_data_validation import types
  from tensorflow_data_validation.skew.protos import feature_skew_results_pb2
  from tensorflow_data_validation.utils import display_util
  from tensorflow_data_validation.utils import test_util
  from tensorflow_metadata.proto.v0 import anomalies_pb2
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 9 for calling the DisplayUtilTest obj's underlying member method code with example usage: obj.test_get_anomalies_dataframe_with_no_toplevel_description() without return types