def is_loaded_model(request, model_info):
    """A simple function to validate if the model in the request matches that in the model info.
    Checks model name and version.

    :param dict request: The incoming request.
    :param dict model_info: The loaded model info.
    :return bool: True if the request matches.
    """
    r_model_info = request["model"]
    return r_model_info["name"] == model_info["name"] and r_model_info["version"] == model_info["version"]