code: def set_user(self, user):
          
          super(Segment, self)._check_ended()
          self.user = user
docs: set user of a segment. One segment can only have one user.
          User is indexed and can be later queried.