code: def test_async_batch_infer(self):
      if not self.app:
          return
  
      model = "segmentation_spleen"
      params = {"max_workers": 2}
  
      self.app.server_mode(True)
      self.app.async_batch_infer(
          model, BatchInferImageType.IMAGES_ALL, params
      )
  
      try:
          self.app.server_mode(False)
          self.app.async_batch_infer(
              model, BatchInferImageType.IMAGES_LABELED
          )
      except:
          pass
  
file_path: MONAILabel/tests/unit/interfaces/test_app.py
imports: import os
  import unittest
  import torch
  from parameterized import parameterized
  from monailabel.config import settings
  from monailabel.interfaces.app import MONAILabelApp
  from monailabel.interfaces.tasks.batch_infer import BatchInferImageType
  from monailabel.interfaces.utils.app import app_instance
label_desc: Use image node_id 5 for calling the TestApp obj's underlying member method code with example usage: obj.test_async_batch_infer() without return types