code: def format_as_markdown_list(
      section_body, types: dict = None, aliases: dict = None
  ):
      section_body = re.sub(
          r"\n([^ ].*?):", r"\n- __\1__:", section_body
      )
      section_body = re.sub(r"^([^ ].*?):", r"- __\1__:", section_body)
  
      # Optionally add type annotations to docstring
      if types:
          for arg, arg_type in types.items():
              type_hint_str = apply_aliases(
                  stringify(arg_type), aliases
              )
              section_body = re.sub(
                  rf"(- __{arg}__)",
                  rf"\1 `{type_hint_str}`",
                  section_body,
              )
  
      return section_body
  
file_path: autokeras/docs/keras_autodoc/docstring.py
imports: import itertools
  import re
  from sphinx.util.typing import stringify
  from .None import utils
label_desc: Use image node_id 6 for calling a global function with example usage: format_as_markdown_list(section_body, types, aliases) and returns: section_body