def METHOD_NAME(self, bundle, **kwargs):
    domain = kwargs['domain']
    pk = kwargs['pk']
    try:
        user = self.Meta.object_class.get_by_user_id(pk, domain)
    except KeyError:
        user = None
    return user