class_docstr: Basic Batch Infer Task
class_docstr_tok: ["Basic","Batch","Infer","Task"]
docstr: Override this method to get all eligible images for your task to run batch infer
docstr_tok: ["Override","this","method","to","get","all","eligible","images","for","your","task","to","run","batch","infer"]
code: def get_images(self, request, datastore: Datastore):
      """
      Override this method to get all eligible images for your task to run batch infer
      """
      images = request.get("images", BatchInferImageType.IMAGES_ALL)
      label_tag = request.get("label_tag")
      labels = request.get("labels")
  
      if isinstance(images, str):
          if images == BatchInferImageType.IMAGES_LABELED:
              return datastore.get_labeled_images(label_tag, labels)
          if images == BatchInferImageType.IMAGES_UNLABELED:
              return datastore.get_unlabeled_images(label_tag, labels)
          return datastore.list_images()
      return images
  
file_path: MONAILabel/monailabel/interfaces/tasks/batch_infer.py
imports: import copy
  import logging
  import multiprocessing
  import time
  from concurrent.futures import ThreadPoolExecutor
  from enum import Enum
  from typing import Callable
  import torch
  from monailabel.interfaces.datastore import Datastore, DefaultLabelTag
  from monailabel.utils.others.generic import handle_torch_linalg_multithread, name_to_device, remove_file
label_desc: Use image node_id 1 for calling the BatchInferTask obj's underlying member method code with example usage: obj.get_images(request, datastore) and returns: images, datastore, datastore, datastore