The function is the extended/inter-procedural variant of callee_functions(), meaning it works recursively. It returns the Functions object representing all the functions through which the function could be called.
The difference between extended_callee_functions() and callee_functions() the later one will only return direct callee functions, while the extended version will find all the functions recursively that eventually call the target function.
Example
from glider import*defquery():# find some internal function, at it will most probably have more callees functions =Functions().with_one_property([MethodProp.INTERNAL]).exec(1,1100)#lets take the first function from the result and return its extended_callee_functions output = functions[0].extended_callee_functions().exec()#print the code of the function, to be aware of whose callees we getprint(functions[0].source_code())return output