class_docstr: Base class of all stats
code: def __init__(
      self,
      mapping: Aes | None = None,
      data: DataLike | None = None,
      **kwargs: Any,
  ):
      kwargs = data_mapping_as_kwargs((data, mapping), kwargs)
      self._kwargs = kwargs  # Will be used to create the geom
      self.params = copy_keys(kwargs, deepcopy(self.DEFAULT_PARAMS))
      self.DEFAULT_AES = aes(**self.DEFAULT_AES)
      self.aes_params = {
          ae: kwargs[ae] for ae in (self.aesthetics() & kwargs.keys())
      }
  
imports: from __future__ import annotations
  import typing
  from copy import deepcopy
  import pandas
  from .._utils import check_required_aesthetics, copy_keys, data_mapping_as_kwargs, groupby_apply, remove_missing, uniquecols
  from .._utils.registry import Register, Registry
  from ..exceptions import PlotnineError
  from ..layer import layer
  from ..mapping import aes
  from abc import ABC
label_desc: Use image node_id 1 to create a new stat object from inherited base classes: ABC with example: obj = stat(mapping, data)