<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_rst_title(rst_doc: Node) -> Optional[Any]: """ Given some RST, extract what docutils thinks is the title """


    for title in rst_doc.traverse(nodes.title):
        return title.astext()

    return None