code: def intermediary_to_markdown(tables, relationships, output):
      
      er_markup = _intermediary_to_markdown(tables, relationships)
      with open(output, "w") as file_out:
          file_out.write(er_markup)
docs: Saves the intermediary representation to markdown.