def METHOD_NAME(
    cls, model: Any, device: str = "CPU", **kwargs: Any
) -> ReferenceEvaluatorBackendRep:
    # if isinstance(model, ReferenceEvaluatorBackendRep):
    #    return model
    if isinstance(model, ReferenceEvaluator):
        return ReferenceEvaluatorBackendRep(model)
    if isinstance(model, (str, bytes, ModelProto)):
        inf = cls.create_inference_session(model)
        return cls.METHOD_NAME(inf, device, **kwargs)
    raise TypeError(f"Unexpected type {type(model)} for model.")