parameters: (vec : np.ndarray, imap : List[int])
return_statement: return ret
docstring: Reverse mapping of a vector according to the index map
  
          Parameters
          ----------
          vec
                  Input vector. Be of shape [nframes, natoms, -1]
          imap
                  Index map. Be of shape [natoms]
          
          Returns
          -------
          vec_out
                  Reverse mapped vector.
docstring_summary: Reverse mapping of a vector according to the index map
docstring_tokens: Reverse mapping of a vector according to the index map
function: def reverse_map(vec : np.ndarray, imap : List[int]) -> np.ndarray:
          """Reverse mapping of a vector according to the index map
  
          Parameters
          ----------
          vec
                  Input vector. Be of shape [nframes, natoms, -1]
          imap
                  Index map. Be of shape [natoms]
          
          Returns
          -------
          vec_out
                  Reverse mapped vector.
          """
          ret = np.zeros(vec.shape)        
          # for idx,ii in enumerate(imap) :
          #     ret[:,ii,:] = vec[:,idx,:]
          ret[:, imap, :] = vec
          return ret
function_tokens: def reverse_map ( vec : np . ndarray , imap : List [ int ] ) -> np . ndarray : ret = np . zeros ( vec . shape ) # for idx,ii in enumerate(imap) : #     ret[:,ii,:] = vec[:,idx,:] ret [ : , imap , : ] = vec return ret