code: def load_descendant_articles_for_section(
          context, section, featured_in_homepage=None, featured_in_section=None,
          featured_in_latest=None, count=5):
      
      request = context.get('request')
      locale = context.get('locale_code')
      page = section.get_main_language_page()
      settings = SiteSettings.for_site(request.site) \
          if request else None
  
      qs = ArticlePage.objects.descendant_of(page).filter(
          language__is_main_language=True)
  
      article_ordering = settings \
          and settings.article_ordering_within_section
  
      cms_ordering = article_ordering \
          and settings.article_ordering_within_section !=\
          ArticleOrderingChoices.CMS_DEFAULT_SORTING
  
      if article_ordering and cms_ordering:
          order_by = ArticleOrderingChoices.\
              get(settings.article_ordering_within_section).name.lower()
  
          order_by = order_by if order_by.find('_desc') == -1 \
              else '-{}'.format(order_by.replace('_desc', ''))
          qs = qs.order_by(order_by)
  
      if featured_in_homepage is not None:
          qs = qs.filter(featured_in_homepage=featured_in_homepage)\
              .order_by('-featured_in_homepage_start_date')
  
      if featured_in_latest is not None:
          qs = qs.filter(featured_in_latest=featured_in_latest)
  
      if featured_in_section is not None:
          qs = qs.filter(featured_in_section=featured_in_section)\
              .order_by('-featured_in_section_start_date')
  
      if not locale:
          return qs.live()[:count]
  
      return get_pages(context, qs, locale)[:count]
docs: Returns all descendant articles (filtered using the parameters)
      If the `locale_code` in the context is not the main language, it will
      return the translations of the live articles.