code: def compare_slices(
      statistics: statistics_pb2.DatasetFeatureStatisticsList,
      lhs_slice_key: Text,
      rhs_slice_key: Text,
  ):
      """Compare statistics of two slices using Facets.
  
      Args:
        statistics: A DatasetFeatureStatisticsList protocol buffer.
        lhs_slice_key: Slice key of the first slice.
        rhs_slice_key: Slice key of the second slice.
  
      Raises:
        ValueError: If the input statistics proto does not have the specified slice
          statistics.
      """
      lhs_stats = stats_util.get_slice_stats(statistics, lhs_slice_key)
      rhs_stats = stats_util.get_slice_stats(statistics, rhs_slice_key)
      visualize_statistics(
          lhs_stats,
          rhs_stats,
          lhs_name=lhs_slice_key,
          rhs_name=rhs_slice_key,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import base64
  import collections
  import sys
  from typing import Dict, Iterable, List, Optional, Text, Tuple, Union
  import pandas
  from tensorflow_data_validation import types
  from tensorflow_data_validation.skew.protos import feature_skew_results_pb2
  from tensorflow_data_validation.utils import stats_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 12 for calling a global function with example usage: compare_slices(statistics, lhs_slice_key, rhs_slice_key) without return types