code: def __init__(
      self,
      axis=None,
      keepdims=None,
      moment=None,
      ddof=None,
      combine_size=None,
      stage=None,
      **kw,
  ):
      stage = self._rewrite_stage(stage)
      if moment is not None:
          kw["_moment"] = moment
      super().__init__(
          _axis=axis,
          _keepdims=keepdims,
          _ddof=ddof,
          _combine_size=combine_size,
          stage=stage,
          **kw,
      )
  
imports: import numpy
  from ...None import opcodes
  from ...serialization.serializables import Int32Field
  from ..datasource import tensor
  from ..array_utils import device, as_same_device, get_array_module
  from .var import reduce_var_square
  from .core import TensorReduction, TensorReductionMixin, nannumel
label_desc: Use image node_id 1 to create a new TensorNanMoment object from inherited base classes: TensorReduction, TensorReductionMixin with example: obj = TensorNanMoment(axis, keepdims, moment, ddof, combine_size, stage)