`expand_func` needs to be imported