I am writing Pytest for my application by following a tutorial But getting Direct construction of Function has been deprecated, please use Function.from_parent.
@