code: def batch_rms(array: np.ndarray) -> np.ndarray:
      piece_size = array.shape[1]
      # (divisions, piece_size) -> (divisions, 1, piece_size)
      multiplicand = array[:, None, :]
      # (divisions, piece_size) -> (divisions, piece_size, 1)
      multiplier = array[..., None]
      return np.sqrt(
          np.squeeze(multiplicand @ multiplier, axis=(1, 2))
          / piece_size
      )
  
imports: import numpy
  import statsmodels.api
label_desc: Use image node_id 12 for calling a global function with example usage: batch_rms(array) and returns: np