i will admit that this might not be the best way of achieving my goal but it got me wondering
LAYOUT:
Nodes:test&test2
Scripts:test.gd&test2.gd
Functions:test()&test2()
EXPERIMENT:
in node test inside test.gd on function test()
$test2.test2.add_lines(str(print("hello_world"))
(reference node reference function and add lines)
sorry if this is plain stupid i just wanted to know :p