The whole file is still "included", all you did is to execute part of it 🙂
I am afraid there is no straightforward way to achieve it. A silly method is to open it and read the necessary parts, then run it as PHP script by eval().
Just curious, for what you just wish to include part of a file? Would it be more simple to split the file into logical fragments and "include" the needed pieces?😕