code: def _create_new_feed(self, feed_type, feed_title, context):
      feed_class = Rss201rev2Feed if feed_type == "rss" else Atom1Feed
      if feed_title:
          feed_title = context["SITENAME"] + " - " + feed_title
      else:
          feed_title = context["SITENAME"]
      return feed_class(
          title=Markup(feed_title).striptags(),
          link=(self.site_url + "/"),
          feed_url=self.feed_url,
          description=context.get("SITESUBTITLE", ""),
          subtitle=context.get("SITESUBTITLE", None),
      )
  
file_path: pelican/pelican/writers.py
imports: import logging
  import os
  from posixpath import join
  from urllib.parse import urljoin
  from feedgenerator import Atom1Feed, Rss201rev2Feed, get_tag_uri
  from markupsafe import Markup
  from pelican.paginator import Paginator
  from pelican.plugins import signals
  from pelican.utils import get_relative_path, path_to_url, sanitised_join, set_date_tzinfo
label_desc: Use image node_id 2 for calling the Writer obj's underlying member method code with example usage: obj._create_new_feed(feed_type, feed_title, context) and returns: feed_class