code: def get_label_distribution(*, data, label):
      """
      Retrieve data label distribution
  
      Args:
          data (pandas): sample data
          label (str): label column name
  
      Returns:
          label_distributions
      """
      label_analyzer = CategoricalDataAnalyzer()
      label_analyzer.feed_all(data[label].tolist())
      label_stats = label_analyzer.get_statistics()
  
      label_distributions = list()
      label_distributions.append((label, label_stats.frequency_count))
      return label_distributions
  
file_path: contextual-ai/xai/data/helper.py
imports: import json
  import warnings
  from collections import Counter
  from statistics import median
  import dateutil
  import numpy
  import math
  from xai.data.constants import DATATYPE, THRESHOLD
  from xai.data.explorer import CategoricalDataAnalyzer, DataAnalyzerSuite
  from xai.data.validator import MissingValidator
label_desc: Use image node_id 4 for calling a global function with example usage: get_label_distribution() and returns: label_distributions