@staticmethod
    def get_impairment(latency=None, delay=None, jitter=None,
            loss=None,
            drop=None,
            corrupt=None,
            reorder=None,
            duplicate=None, correlation=None):
        imp = Impairment()
        # latency and delay are actually synonyms/aliases for the same thing.
        if latency is not None:
            imp.add_delay(latency, jitter=jitter, correlation=correlation)
        if delay is not None:
            imp.add_delay(latency, jitter=jitter, correlation=correlation)
        # loss and drop are synonyms/aliases
        if loss is not None:
            imp.add_drop(loss, correlation=correlation)
        if drop is not None:
            imp.add_drop(drop, correlation=correlation)
        if corrupt is not None:
            imp.add_corrupt(corrupt, correlation=correlation)
        if duplicate is not None:
            imp.add_duplicate(duplicate, correlation=correlation)
        if reorder is not None:
            imp.add_reorder(reorder, correlation=correlation)
        return imp
Simplified constructor function for impairment objects. It can't do
dataset/ETHPy150Open kdart/pycopia/net/pycopia/router.py/ImpairmentsConfigurer.get_impairment