def METHOD_NAME(tmpdir, metadata_store):
    """
    Test writing metadata to a file
    """
    metadata = metadata_store.ChannelNode.from_dict({})
    file_path = tmpdir / 'metadata.file'
    metadata.to_file(file_path)
    assert file_path.exists()