def METHOD_NAME(img):
    icc = img.info.get("icc_profile")
    if not icc:
        return "RGB"
    if ImageCms is None:
        return None
    _, color_space = get_profile_and_color_space(icc)
    return color_space