code: def get_indices(self, task):
      if isinstance(task, ConcatTask):
          indices = self.get_indices_concattask(task)
      elif isinstance(task, Task):
          indices = self.get_indices_task(task)
      else:
          raise ValueError(
              "The task must be of type `ConcatTask` or `Task`, "
              "Got type `{0}`.".format(type(task))
          )
      return indices
  
imports: import torch
  import numpy
  from collections import OrderedDict, defaultdict
  from torchmeta.utils.data.task import Task, ConcatTask, SubsetTask
  from torchmeta.transforms.utils import apply_wrapper
label_desc: Use image node_id 3 for calling the Splitter obj's underlying member method code with example usage: obj.get_indices(task) and returns: indices