class_docstr: This class extends PyTorch's Dataloader
docstr: Update indices in the dataset class
docstr_tok: ["Update","indices","in","the","dataset","class"]
code: def update_indices(self, new_indices: List, *args, **kwargs):
      """Update indices in the dataset class"""
      if hasattr(self.batch_sampler, "img_indices") and hasattr(
          self.batch_sampler, "update_indices"
      ):
          self.batch_sampler.update_indices(new_indices)
  
file_path: ml-cvnets/data/loader/dataloader.py
imports: from typing import List, Optional, Union
  from torch.utils.data import DataLoader
  from data.datasets.dataset_base import BaseDataset
  from data.sampler import Sampler
label_desc: Use image node_id 2 for calling the CVNetsDataLoader obj's underlying member method code with example usage: obj.update_indices(new_indices) without return types