def first(self, **kwargs):
result = result = self._get(limit=<NUM_LIT:1>, **kwargs)<EOL>if result:<EOL><INDENT>return result[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>raise self.source_class.DoesNotExist(repr(kwargs))<EOL><DEDENT>
Retrieve the first node from the set matching supplied parameters

:param kwargs: same syntax as `filter()`
:return: node