def write_bytes(data, urlpath, name_function=None, compression=None, encoding=None, **kwargs):
 mode = ('wb' if (encoding is None) else 'wt')
 (fs, names, myopen) = get_fs_paths_myopen(urlpath, compression, mode, name_function=name_function, num=len(data), encoding=encoding, **kwargs)
 return [delayed(write_block_to_file, pure=False)(d, myopen(f, mode='wb')) for (d, f) in zip(data, names)]

def write_bytes ( data , urlpath , name_function = None , compression = None , encoding = None , ** kwargs ) : mode = ( 'wb' if ( encoding is None ) else 'wt' ) ( fs , names , myopen ) = get_fs_paths_myopen ( urlpath , compression , mode , name_function = name_function , num = len ( data ) , encoding = encoding , ** kwargs ) return [ delayed ( write_block_to_file , pure = False ) ( d , myopen ( f , mode = 'wb' ) ) for ( d , f ) in zip ( data , names ) ]
write dask data to a set of files parameters data: list of delayed objects producing data to write urlpath: list or template location(s) to write to .