code: def dot_reduce(*args):
      r"""Apply numpy dot product function from right to left on arrays
  
      For passed arrays :math:`A, B, C, ... Z` returns :math:`A \dot B \dot C ...
      \dot Z` where "." is the numpy array dot product.
  
      Parameters
      ----------
      \*\*args : arrays
          Arrays that can be passed to numpy ``dot`` function
  
      Returns
      -------
      dot_product : array
          If there are N arguments, result of ``arg[0].dot(arg[1].dot(arg[2].dot
          ...  arg[N-2].dot(arg[N-1])))...``
      """
      return reduce(lambda x, y: np.dot(y, x), args[::-1])
  
file_path: nibabel/nibabel/affines.py
imports: from functools import reduce
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: dot_reduce() and returns: reduce