def getpathnode(self, path):
config = self.parseconfigure(path)<EOL>session = Session(config)<EOL>x = session.fspath.bestrelpath(path)<EOL>config.hook.pytest_sessionstart(session=session)<EOL>res = session.perform_collect([x], genitems=False)[<NUM_LIT:0>]<EOL>config.hook.pytest_sessionfinish(session=session, exitstatus=EXIT_OK)<EOL>return res<EOL>
Return the collection node of a file.

        This is like :py:meth:`getnode` but uses :py:meth:`parseconfigure` to
        create the (configured) pytest Config instance.

        :param path: a :py:class:`py.path.local` instance of the file