code: def get_following(self, auth_secret):
          
          result = {pytwis_constants.ERROR_KEY: None}
  
          # Check if the user is logged in.
          loggedin, userid = self._is_loggedin(auth_secret)
          if not loggedin:
              result[pytwis_constants.ERROR_KEY] = pytwis_constants.ERROR_NOT_LOGGED_IN
              return (False, result)
  
          # Get the list of followers' userids.
          following_zset_key = pytwis_constants.FOLLOWING_KEY_FORMAT.format(userid)
          following_userids = self._rc.zrange(following_zset_key, 0, -1)
  
          if following_userids is None or not following_userids:
              result[pytwis_constants.FOLLOWING_LIST_KEY] = []
              return (True, result)
  
          # Get the list of followings' usernames from their userids.
          with self._rc.pipeline() as pipe:
              pipe.multi()
  
              for following_userid in following_userids:
                  following_userid_profile_key = \
                      pytwis_constants.USER_PROFILE_KEY_FORMAT.format(following_userid)
                  pipe.hget(following_userid_profile_key, pytwis_constants.USERNAME_KEY)
  
              result[pytwis_constants.FOLLOWING_LIST_KEY] = pipe.execute()
  
          return (True, result)
docs: Get the following list of a logged-in user.
  
          Parameters
          ----------
          auth_secret: str
              The authentication secret of the logged-in user.
  
          Returns
          -------
          bool
              True if the following list is successfully obtained, False otherwise.
          result
              A dict containing the following list with the key FOLLOWING_LIST_KEY
              if the follower list is successfully obtained, a dict containing
              the error string with the key ERROR_KEY otherwise.
  
          Note
          ----
          Possible error strings are listed as below:
  
          -  ERROR_NOT_LOGGED_IN