def METHOD_NAME(cls, response: InferenceResponse) -> Any:
    if len(response.outputs) != 1:
        raise CodecError(
            f"The '{cls.ContentType}' codec only supports a single output tensor "
            f"({len(response.outputs)} were received)"
        )
    first_output = response.outputs[0]
    if not has_decoded(first_output) and cls.InputCodec is not None:
        decoded_payload = cls.InputCodec.decode_output(first_output)  # type: ignore
        _save_decoded(first_output, decoded_payload)
    return get_decoded_or_raw(first_output)