"""Map Asset Types to Standards.""" from assets.constants import asset_types def map_image_asset_type(asset_type): """Convert asset image types to standard types. Args: asset_type (str): general image asset type Returns: string: asset type converted to standard type """ if asset_type.upper() in asset_types.ASSET_JPG_FILE_TYPES: return asset_types.TYPE_FILE_JPG if asset_type.upper() in asset_types.ASSET_TIF_FILE_TYPES: return asset_types.TYPE_FILE_TIF return asset_type