code: def get_contributors(self, subreddit, *args, **kwargs):
          
          # pylint: disable=W0613
          def get_contributors_helper(self, subreddit):
              # It is necessary to have the 'self' argument as it's needed in
              # restrict_access to determine what class the decorator is
              # operating on.
              url = self.config['contributors'].format(
                  subreddit=six.text_type(subreddit))
              return self._get_userlist(url, user_only=True, *args, **kwargs)
  
          if self.is_logged_in():
              if not isinstance(subreddit, objects.Subreddit):
                  subreddit = self.get_subreddit(subreddit)
              if subreddit.subreddit_type == "public":
                  decorator = decorators.restrict_access(scope='read', mod=True)
                  return decorator(get_contributors_helper)(self, subreddit)
          return get_contributors_helper(self, subreddit)
docs: Return a get_content generator of contributors for the given subreddit.
  
          If it's a public subreddit, then authentication as a
          moderator of the subreddit is required. For protected/private
          subreddits only access is required. See issue #246.