code: def intermediary_to_dot(tables, relationships, output):
      
      dot_file = _intermediary_to_dot(tables, relationships)
      with open(output, "w") as file_out:
          file_out.write(dot_file)
docs: Save the intermediary representation to dot format.