<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def top_stories(self, raw=False, limit=None):
 """Returns list of item ids of current top stories Args: limit (int):
 specifies the number of stories to be returned. raw (bool):
 Flag to indicate whether to represent all objects in raw json. Returns: `list` object containing ids of top stories. """

        top_stories = self._get_stories('topstories', limit)
        if raw:
            top_stories = [story.raw for story in top_stories]
        return top_stories