code: def sum_right_most(x, ndim):
      """Sum along the right most `ndim` dimensions of `x`,
  
      Parameters
      ----------
      x : Tensor
          Input tensor.
      ndim : Int
          Number of dimensions to be summed.
  
      Returns
      -------
      Tensor
      """
      if ndim == 0:
          return x
      axes = list(range(-ndim, 0))
      return x.sum(axes)
  
file_path: mxnet/python/mxnet/gluon/probability/distributions/utils.py
imports: from functools import update_wrapper
  from numbers import Number
  import numpy
  from ....None import np, npx
label_desc: Use image node_id 7 for calling a global function with example usage: sum_right_most(x, ndim) and returns: x, x