def _is_vdi_a_snapshot(vdi_rec):
    is_a_snapshot = vdi_rec['is_a_snapshot']
    image_id = vdi_rec['other_config'].get('image-id')
    return is_a_snapshot and not image_id
Test to ensure the abstract Type object can't be used
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/xenapi/vm_utils.py/_is_vdi_a_snapshot--crossover with--dataset/ETHPy150Open timothycrosley/hug/tests/test_types.py/test_type