def METHOD_NAME(self, model, id):
    """
    :param model:
    :param id:
    """
    if not isinstance(model, BytesIO):
        bt = BytesIO()
        written_total = 0
        for d in model.stream(32 * 1024):
            written = bt.write(d)
            written_total += written
    else:
        bt = model
    bt.seek(0, 0)
    def upload_request_generator(mdl):
        """
        :param mdl:
        """
        while True:
            b = mdl.read(CHUNK_SIZE)
            if b:
                result = fedn.ModelRequest(
                    data=b, id=id, status=fedn.ModelStatus.IN_PROGRESS)
            else:
                result = fedn.ModelRequest(
                    id=id, data=None, status=fedn.ModelStatus.OK)
            yield result
            if not b:
                break
    # TODO: Check result
    _ = self.Upload(upload_request_generator(bt), self)