from jina.executors import BaseEncoder
from jina.helper import train_required


class DummyEncoder2(BaseEncoder):

    def train(self, *args, **kwargs):
        self.logger.info('you just trained me!')
        pass

    @train_required
    def encode(self, x):
        return x + 1
