Editor and Runtime versions of the same plugin/library ?

Exactly the problem.
So, is there any way to have the same BP Node “MyFunc” that uses Editor code when in Editor and behaves differently when used at Runtime ?
Or they necessarily need to be 2 different nodes ? (MyFunc and MyFuncEditor)
Thanks!