code: def testAutoPivot_MetricsDataFrameOverallSliceOnly(self):
      dfs = dataframe.metrics_as_dataframes(
          self.metrics_overall_slice_only, include_empty_columns=False
      )
      df = dfs.double_value
      expected = df.pivot(
          index=[
              ("slices", "Overall"),
          ],
          columns=[("metric_keys", "name")],
          values=[("metric_values", "double_value")],
      )
      df = dataframe.auto_pivot(
          df, stringify_slices=False, collapse_column_names=False
      )
      pd.testing.assert_frame_equal(expected, df)
  
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 9 for calling the MetricsAsDataFrameTest obj's underlying member method code with example usage: obj.testAutoPivot_MetricsDataFrameOverallSliceOnly() without return types