def METHOD_NAME(self):
    ret  = 'test -z "$MPI_RANK"    || export RP_RANK=$MPI_RANK\n'
    ret += 'test -z "$PMIX_RANK"   || export RP_RANK=$PMIX_RANK\n'
    ret += 'test -z "$ALPS_APP_PE" || export RP_RANK=$ALPS_APP_PE\n'
    return ret