human
Solve the following python programming problem given the following code:
def _acquire_hdf_data(open_hdf_files = None, var_names = None, concatenate_size = None, bounds = None) : 
    import h5py, numpy 
    out_dict = { 
        
} 
    def check_for_dataset(nodes, var_names) : 
        '
        A function to check for datasets in an hdf file and collect them
        ' 
        import h5py 
        for node in nodes : 
            if isinstance (node, h5py._hl.dataset.Dataset) : 
                dataset_name = node.name.rsplit ('/', 1) [1] 
                dataset = node 
                if (dataset_name in var_names) : 
                    dict_of_h5py_datasets [dataset_name] = dataset 
else : 
                if isinstance (node, h5py._hl.group.Group) : 
                    check_for_dataset (node.values (), var_names) 
dataset_lists_by_name = { 
        
} 
    for file in open_hdf_files : 
        dict_of_h5py_datasets = { 
            
} 
        chopped_end = { 
            
} 
        log.debug (('Reading file: %s' % file)) 
        nodes = file.values () 
        check_for_dataset (nodes, var_names) 
        log.debug (('dict_of_h5py_datasets: %s' % dict_of_h5py_datasets)) 
        if (not dict_of_h5py_datasets) : 
            continue 
for vname in var_names : 
            dataset = dict_of_h5py_datasets.get (vname, None) 
            if dataset : 
                dset_list = dataset_lists_by_name.get (vname, []) 
                dset_list.append (dataset) 
                dataset_lists_by_name [vname] = dset_list 
array_iterators_by_name = { 
        
} 
    if (len (dataset_lists_by_name.keys ()) == 0) : 
        raise NotFound ('No dataset for the variables provided were found in the hdf files.') 
for (vname, dset_list) in dataset_lists_by_name.iteritems () : 
        virtual_dset = VirtualDataset (dset_list) 
        if bounds : 
            check_bounds (concatenate_size, virtual_dset) 
            iarray = ArrayIterator (virtual_dset, concatenate_size) [bounds] 
else : 
            iarray = ArrayIterator (virtual_dset, concatenate_size) 
array_iterators_by_name...

    
    

    Fix the buggy line: check_bounds (concatenate_size, virtual_dset)
assistant
#Here is Python code to fix the buggy line: check_bounds (concatenate_size, virtual_dset)
.

check_bounds (bounds, virtual_dset)