parameters: (extension_category)
return_statement: return EXTENSION_CATEGORY_TEMPLATE.render(
          category=extension_category,
          extensions=sorted(extensions),
          contrib_extensions=sorted(contrib_extensions))
docstring: Format extension metadata as RST.
  
      Args:
          extension_category: the name of the extension_category, e.g. com.acme.
  
      Returns:
          RST formatted extension category description.
docstring_summary: Format extension metadata as RST.
docstring_tokens: Format extension metadata as RST .
function: def format_extension_category(extension_category):
      """Format extension metadata as RST.
  
      Args:
          extension_category: the name of the extension_category, e.g. com.acme.
  
      Returns:
          RST formatted extension category description.
      """
      extensions = EXTENSION_CATEGORIES.get(extension_category, [])
      contrib_extensions = CONTRIB_EXTENSION_CATEGORIES.get(extension_category, [])
      if not extensions and not contrib_extensions:
          raise ProtodocError(f"\n\nUnable to find extension category:  {extension_category}\n\n")
      return EXTENSION_CATEGORY_TEMPLATE.render(
          category=extension_category,
          extensions=sorted(extensions),
          contrib_extensions=sorted(contrib_extensions))
function_tokens: def format_extension_category ( extension_category ) : extensions = EXTENSION_CATEGORIES . get ( extension_category , [ ] ) contrib_extensions = CONTRIB_EXTENSION_CATEGORIES . get ( extension_category , [ ] ) if not extensions and not contrib_extensions : raise ProtodocError ( f"\n\nUnable to find extension category:  {extension_category}\n\n" ) return EXTENSION_CATEGORY_TEMPLATE . render ( category = extension_category , extensions = sorted ( extensions ) , contrib_extensions = sorted ( contrib_extensions ) )