def METHOD_NAME(alg_throughput):
    BITPERBYTE = 8
    SENDTIMES = 2
    if size == local_size:
        # single node
        return alg_throughput * BITPERBYTE * SENDTIMES * 1
    else:
        # multi-node
        return alg_throughput * BITPERBYTE * SENDTIMES * (1 - (local_size / size))