def METHOD_NAME(self, request_iterator, context):
    """
    :param request_iterator:
    :param context:
    :return:
    """
    # print("STARTING UPLOAD!", flush=True)
    result = None
    for request in request_iterator:
        if request.status == fedn.ModelStatus.IN_PROGRESS:
            self.models.get_ptr(request.id).write(request.data)
            self.models.set_meta(request.id, fedn.ModelStatus.IN_PROGRESS)
        if request.status == fedn.ModelStatus.OK and not request.data:
            result = fedn.ModelResponse(id=request.id, status=fedn.ModelStatus.OK,
                                        message="Got model successfully.")
            # self.models_metadata.update({request.id: fedn.ModelStatus.OK})
            self.models.set_meta(request.id, fedn.ModelStatus.OK)
            self.models.get_ptr(request.id).flush()
            self.models.get_ptr(request.id).close()
            return result