code: def standard_moment(samples, weights=None, order=1, tol=0):
      """calculate the (weighted) nth-order standard moment for a list of points
  
      ``standard_moment(x,w,order) = moment(x,w,order)/std(x,w)^order``
  
      Args:
          samples (list): a list of sample points
          weights (list, default=None): a list of sample weights
          order (int, default=1): the degree, a positive integer
          tol (float, default=0.0): a tolerance, where any ``mean <= tol`` is zero
  
      Returns:
          the weighted nth-order standard moment for a list of sample points
      """
      if order == 2:
          return 1.0  # XXX: error if order < 0
      return (
          moment(samples, weights, order, tol)
          / std(samples, weights) ** order
      )
  
imports: from mystic.math.stats import *
  from mystic.math.samples import *
  from mystic.math.integrate import *
  from mystic.symbolic import generate_solvers, generate_constraint, solve
  from mystic.symbolic import generate_conditions, generate_penalty
  from mystic.math import almostEqual
  from mystic.math.distance import Lnorm
  from numpy import asarray
label_desc: Use image node_id 18 for calling a global function with example usage: standard_moment(samples, weights, order, tol) and returns: unknown, int