class_docstr: Abstract class for data statistics for all types data analyzer
docstr: Map the stats to json object
  
  Returns:
      A dictionary contains key statistical attribute
docstr_tok: ["Map","the","stats","to","json","object","Returns",":","A","dictionary","contains","key","statistical","attribute"]
code: def to_json(self) -> Dict:
      """
      Map the stats to json object
  
      Returns:
          A dictionary contains key statistical attribute
      """
      raise NotImplementedError(
          "The derived helper needs to implement it."
      )
  
file_path: contextual-ai/xai/data/abstract_stats.py
imports: from abc import abstractmethod, ABC
  from typing import Dict
  from xai.data.exceptions import InvalidTypeError
label_desc: Use image node_id 4 for calling the AbstractStats obj's underlying member method code with example usage: obj.to_json() without return types