<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_comments(self, subreddit, gilded_only=False, *args, **kwargs):
 """Return a get_content generator for comments in the given subreddit. :param gilded_only: If True only return gilded comments. The additional parameters are passed directly into :meth:`.get_content`. Note: the `url` parameter cannot be altered. """

        key = 'sub_comments_gilded' if gilded_only else 'subreddit_comments'
        url = self.config[key].format(subreddit=six.text_type(subreddit))
        return self.get_content(url, *args, **kwargs)