import time
from jina.executors.crafters import BaseCrafter

from .helper import foo


class DummyHubExecutorSlow(BaseCrafter):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        time.sleep(15)
        foo()

[((11, 8, 11, 22), 'time.sleep', 'time.sleep', ({(11, 19, 11, 21): '(15)'}, {}), '(15)', False, 'import time\n')]