code: def ReplaceUser(self, user_link, user, options=None):
          
          if options is None:
              options = {}
  
          CosmosClient.__ValidateResource(user)
          path = base.GetPathFromLink(user_link)
          user_id = base.GetResourceIdOrFullNameFromLink(user_link)
          return self.Replace(user,
                              path,
                              'users',
                              user_id,
                              None,
                              options)
docs: Replaces a user and return it.
  
          :param str user_link:
              The link to the user entity.
          :param dict user:
          :param dict options:
              The request options for the request.
  
          :return:
              The new User.
          :rtype:
              dict