code: def get_data_statistics(data: Data) -> Dict[str, Any]:
      """Get statistics about a dataset.
  
      This function is called to initialize the "statistics" info in all `Datalab` objects.
  
      Parameters
      ----------
      data : Data
          Data object containing the dataset.
      """
      statistics: Dict[str, Any] = {
          "num_examples": len(data),
          "multi_label": False,
          "health_score": None,
      }
      if data.labels.is_available:
          class_names = data.class_names
          statistics["class_names"] = class_names
          statistics["num_classes"] = len(class_names)
      return statistics
  
imports: from __future__ import annotations
  import warnings
  from abc import ABC, abstractmethod
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  import numpy
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: get_data_statistics(data) and returns: statistics