def METHOD_NAME(filename, data):
    if is_cluster_uri(filename):
        from . import clusterIO
        sequenceName, clusterfilter = split_cluster_url(filename)
        clusterIO.put_file(sequenceName, data, serverfilter=clusterfilter)
    else:
        with open(filename, 'wb') as f:
            f.METHOD_NAME(data)