def to_pairs(dictlike):
    if hasattr(dictlike, 'iteritems'):
        return dictlike.iteritems()
    elif hasattr(dictlike, 'keys'):
        return ((key, dictlike[key]) for key in dictlike.keys())
    elif hasattr(dictlike, '_asdict'): # namedtuple interface
        return dictlike._asdict().iteritems()
    else:
        return ((key, value) for key, value in dictlike)
Validate deleted tenant weren't migrated.
dataset/ETHPy150Open jek/flatland/flatland/util/base.py/to_pairs--crossover with--dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry_devlab/cloudferry_devlab/tests/testcases/test_verify_dst_del_tenant_resources.py/VerifyDstDeletedTenantResources.test_tenant_exists_on_dst