code: def get_data_statistics(
      *, data, feature_names, feature_types, label=None
  ):
      """
      Retrieve missing value count
  
      Args:
          data (pandas): sample data
          feature_names (list): valid feature names
          feature_types (list): valid feature types
          label (str, Optional): label column name
  
      Returns:
          data_stats
      """
      data_analyzer_suite = DataAnalyzerSuite(
          data_type_list=feature_types, column_names=feature_names
      )
      labels = None
      if not (label is None):
          labels = data[label]
  
      for column, column_type in zip(feature_names, feature_types):
          data_analyzer_suite.feed_column(
              column_name=column,
              column_data=data[column].tolist(),
              labels=labels,
          )
  
      stats = data_analyzer_suite.get_statistics()
      return stats
  
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 6 for calling a global function with example usage: get_data_statistics() and returns: stats