Where is the function is_return defined?

I see a lot of reference to this self.is_return in Python script but I cannot see where this function is defined. I can’t find def is_return. Can someone please tell me where this function is defined ?

@The_Lowkster
is_return is not a function it is check box in DocType
e.g. Delivery Note DocType

Ah! Okay. Thanks!!