code: def download_highlights(self,
                              user: Union[int, Profile],
                              fast_update: bool = False,
                              filename_target: Optional[str] = None,
                              storyitem_filter: Optional[Callable[[StoryItem], bool]] = None) -> None:
          
          for user_highlight in self.get_highlights(user):
              name = user_highlight.owner_username
              self.context.log("Retrieving highlights \"{}\" from profile {}".format(user_highlight.title, name))
              totalcount = user_highlight.itemcount
              count = 1
              for item in user_highlight.get_items():
                  if storyitem_filter is not None and not storyitem_filter(item):
                      self.context.log("<{} skipped>".format(item), flush=True)
                      continue
                  self.context.log("[%3i/%3i] " % (count, totalcount), end="", flush=True)
                  count += 1
                  with self.context.error_catcher('Download highlights \"{}\" from user {}'.format(user_highlight.title, name)):
                      downloaded = self.download_storyitem(item, filename_target
                                                           if filename_target
                                                           else '{}/{}'.format(name, user_highlight.title))
                      if fast_update and not downloaded:
                          break
docs: Download available highlights from a user whose ID is given.
          To use this, one needs to be logged in.
  
          .. versionadded:: 4.1
  
          :param user: ID or Profile of the user whose highlights should get downloaded.
          :param fast_update: If true, abort when first already-downloaded picture is encountered
          :param filename_target: Replacement for {target} in dirname_pattern and filename_pattern
                 or None if profile name and the highlights' titles should be used instead
          :param storyitem_filter: function(storyitem), which returns True if given StoryItem should be downloaded