<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_sticky(self, subreddit, bottom=False):
 """Return a Submission object for the sticky of the subreddit. :param bottom: Get the top or bottom sticky. If the subreddit has only a single sticky, it is considered the top one. """

        url = self.config['sticky'].format(subreddit=six.text_type(subreddit))
        param = {'num': 2} if bottom else None
        return objects.Submission.from_json(self.request_json(url,
                                                              params=param))