[docs]defget_mpi_variables()->tuple[MPI.Comm,An[int,ge(0)],An[int,ge(1)]]:"""Retrieves MPI variables from the MPI runtime. Returns: * The MPI communicator. * The rank of the current process. * The total number of processes. """comm=MPI.COMM_WORLDrank=comm.Get_rank()size=comm.Get_size()returncomm,rank,size