def convert_data(_data):
    map = {
        DBAnnotation.vtType: Annotation,
        DBAbstraction.vtType: Abstraction,
        DBConnection.vtType: Connection,
        DBLocation.vtType: Location,
        DBModule.vtType: Module,
        DBFunction.vtType: ModuleFunction,
        DBGroup.vtType: Group,
        DBParameter.vtType: ModuleParam,
        DBPluginData.vtType: PluginData,
        DBPort.vtType: Port,
        DBPortSpec.vtType: PortSpec,
        DBControlParameter.vtType: ModuleControlParam,
        }
    try:
        map[_data.vtType].convert(_data)
    except __HOLE__:
        raise TypeError('cannot convert data of type %s' % _data.vtType)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/vistrail/operation.py/convert_data