def get_or_init_instance(self, instance_loader, row):
instance = self.get_instance(instance_loader, row)<EOL>if instance:<EOL><INDENT>return (instance, False)<EOL><DEDENT>else:<EOL><INDENT>return (self.init_instance(row), True)<EOL><DEDENT>
Either fetches an already existing instance or initializes a new one.