code: def setUp(self):
      super().setUp()
      self.plots_for_slice = [
          text_format.Parse(
              """
          slice_key {
             single_slice_keys {
               column: "age"
               float_value: 38.0
             }
             single_slice_keys {
               column: "sex"
               bytes_value: "Female"
             }
           }
           plot_keys_and_values {
             key {
               example_weighted {
               }
             }
             value {
               confusion_matrix_at_thresholds {
                 matrices {
                   threshold: 0.5
                   false_negatives: 10
                   true_negatives: 10
                   false_positives: 10
                   true_positives: 10
                   precision: 0.9
                   recall: 0.8
                 }
                 matrices {
                   threshold: 0.5
                   false_negatives: 10
                   true_negatives: 10
                   false_positives: 10
                   true_positives: 10
                   precision: 0.9
                   recall: 0.8
                 }
               }
             }
           }
           """,
              metrics_for_slice_pb2.PlotsForSlice(),
          )
      ]
  
imports: import dataclasses
  import numpy
  import pandas
  import tensorflow
  from tensorflow_model_analysis.experimental import dataframe
  from tensorflow_model_analysis.proto import metrics_for_slice_pb2
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling the PlotsAsDataFrameTest obj's underlying member method code with example usage: obj.setUp() without return types