def RateLimited(generator, msgs_per_sec):
    for x in generator:
        yield x
        time.sleep(1 / msgs_per_sec)
Consolidate volume backing VMDK files if needed.
dataset/ETHPy150Open remakeelectric/mqtt-malaria/beem/msgs.py/RateLimited--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/vmwareapi/volumeops.py/VMwareVolumeOps._consolidate_vmdk_volume