importing a local variable in a function into timeit,time = timeit.timeit(lambda : module.expensive_func(data))