def METHOD_NAME(theme_css_dir, item):
    if not isinstance(item, dict):
        raise InvalidThemeManifest()
    if item.get("url"):
        return clean_css_url(item)
    if item.get("path"):
        return clean_css_file(theme_css_dir, item)
    raise InvalidThemeManifest()