<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_json_path(graph: BELGraph, path: str, **kwargs) -> None: """Write this graph to the given path as a Node-Link JSON."""

    with open(os.path.expanduser(path), 'w') as f:
        to_json_file(graph, file=f, **kwargs)