def get_dataset_filename(name, ext, hid):
 base = ''.join(((((c in FILENAME_VALID_CHARS) and c) or '_') for c in name))
 return (base + ('_%s.%s' % (hid, ext)))

def get_dataset_filename ( name , ext , hid ) : base = '' . join ( ( ( ( ( c in FILENAME_VALID_CHARS ) and c ) or '_' ) for c in name ) ) return ( base + ( '_%s.%s' % ( hid , ext ) ) )
builds a filename for a dataset using its name an extension .