code: def parse_docs(docs, marks):
      
      if docs is None:
          return {}
      indexs = []
      for mark in marks:
          i = docs.find(mark)
          if i >= 0:
              indexs.append(i)
      if not indexs:
          return {"$desc": textwrap.dedent(docs).strip()}
      start = min(indexs)
      start = docs.rfind("\n", 0, start)
      yamltext = textwrap.dedent(docs[start + 1:])
      meta = yaml.load(yamltext)
      meta["$desc"] = textwrap.dedent(docs[:start]).strip()
      return meta
docs: Parse YAML syntax content from docs
  
      If docs is None, return {}
      If docs has no YAML content, return {"$desc": docs}
      Else, parse YAML content, return {"$desc": docs, YAML}
  
      Args:
          docs (str): docs to be parsed
          marks (list): list of which indicate YAML content starts
      Returns:
          A dict contains information of docs