

@staticmethod
def _get_tagging_asset_type(asset):
    objecttype = type(asset)
    if (objecttype.__name__ in OBJECT_TO_TAGGING_ASSET_TYPE_MAP):
        return OBJECT_TO_TAGGING_ASSET_TYPE_MAP[objecttype.__name__]
    raise TypeError(('Asset type %s cannot be tagged' % objecttype.__name__))

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver._get_tagging_asset_type/original