code: def extend_html_page_context(
      app, pagename, templatename, context, doctree
  ):
      env = app.builder.env
  
      if pagename in env.blog_metadata:
          metadata = env.blog_metadata[pagename]
  
          if metadata.is_post:
              body = bs4.BeautifulSoup(metadata.body)
  
              short_description = body.select_one(".short-description")
  
              if short_description is None:
                  print(
                      "Article {} doesn't have short description"
                      "".format(pagename)
                  )
  
                  metadata.short_description = ""
                  return
  
              short_description_html = str(short_description)
              short_description.decompose()
  
              metadata.short_description = short_description_html
              metadata.body = str(body)
  
file_path: neupy/site/conf.py
imports: import os
  import re
  import sys
  import importlib
  import bs4
  import tinkerer
  import tinkerer.paths
label_desc: Use image node_id 5 for calling a global function with example usage: extend_html_page_context(app, pagename, templatename, context, doctree) without return types