Timeit.timeit错误(未定义名称“ func”)

I tried doing timeit.timeit("func()") (func is a function defined by myself), however, I always get the error name 'func' is not defined. Using Jupyter Notebook (I know about the magic timeit of Jupyter, but I wonder why this doesn't work?).