code: def show_statistics(
      ds_info: dataset_info.DatasetInfo,
      split: splits.Split = splits.Split.TRAIN,
      disable_logging: bool = True,
  ) -> None:
      """Display the datasets statistics on a Colab/Jupyter notebook.
  
      `tfds.show_statistics` is a wrapper around
      [tensorflow_data_validation](https://www.tensorflow.org/tfx/data_validation/get_started)
      which calls `tfdv.visualize_statistics`. Statistics are displayed using
      [FACETS OVERVIEW](https://pair-code.github.io/facets/).
  
      Usage:
  
      ```
      builder = tfds.builder('mnist')
      tfds.show_statistics(builder.info)
      ```
  
      Or:
  
      ```
      ds, ds_info = tfds.load('mnist', with_info)
      tfds.show_statistics(ds_info)
      ```
  
      Note: In order to work, `tensorflow_data_validation` must be installed and
      the dataset info object must contain the statistics. For "official" datasets,
      only datasets which have been added/updated recently will contains statistics.
      For "custom" datasets, you need to generate the dataset with
      `tensorflow_data_validation` installed to have the statistics.
  
      Args:
        ds_info: The `tfds.core.DatasetInfo` object containing the statistics.
        split: Split for which generate the statistics.
        disable_logging: `bool`, if True, disable the tfdv logs which can be too
          verbose.
  
      Returns:
        `None`
      """
      tfdv = lazy_imports_lib.lazy_imports.tensorflow_data_validation
  
      if split not in ds_info.splits:
          raise ValueError(
              "Invalid requested split: '{}'. Only {} are availables.".format(
                  split, list(ds_info.splits)
              )
          )
  
      # Creates the statistics.
      statistics = statistics_pb2.DatasetFeatureStatisticsList()
      statistics.datasets.add().CopyFrom(
          ds_info.splits[split].statistics
      )  # pytype: disable=attribute-error  # bind-properties
      with utils.disable_logging() if disable_logging else utils.nullcontext():
          return tfdv.visualize_statistics(statistics)
  
file_path: datasets/tensorflow_datasets/core/visualization/show_examples.py
imports: from __future__ import annotations
  from collections.abc import Iterable
  import typing
  from typing import Any, Union
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import lazy_imports_lib
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.core.visualization import graph_visualizer
  from tensorflow_datasets.core.visualization import image_visualizer
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: show_statistics(ds_info, split, disable_logging) and returns: tfdv