code: def write_markdown_to_file(self, f):
      
      print("---", file=f)
      print("---", file=f)
      print("<!-- This file is machine generated: DO NOT EDIT! -->", file=f)
      print("", file=f)
      # TODO(touts): Do not insert these.  Let the doc writer put them in
      # the module docstring explicitly.
      print("#", self._title, file=f)
      if self._prefix:
        print(self._prefix, file=f)
      print("[TOC]", file=f)
      print("", file=f)
      if self._module is not None:
        self._write_module_markdown_to_file(f, self._module)
docs: Prints this library to file `f`.
  
      Args:
        f: File to write to.
  
      Returns:
        Dictionary of documented members.