code: def register_user(self, user):
          
          self.users[user.index] = {'known_items': set()}
          self.n_user += 1
docs: For new users, append their information into the dictionaries.
  
          Args:
              user (User): User.