docs: def to_bel_path(graph, path: str, mode: str = 'w', **kwargs) -> None:
      """Write the BEL graph as a canonical BEL Script to the given path.
  
      :param BELGraph graph: the BEL Graph to output as a BEL Script
      :param path: A file path
      :param mode: The file opening mode. Defaults to 'w'
      """
      with open(path, mode=mode, **kwargs) as bel_file:
          to_bel(graph, bel_file)