code: def __init__(self, model, ps, send_queue, recv_queue, next_idx):
      super().__init__()
      self.model = model
      self.ps = ps
      self.p_num = len(ps) if ps is not None else 0
      self.send_queue = send_queue
      self.recv_queue = recv_queue
      self.next_idx = next_idx
  
file_path: BigDL/python/nano/src/bigdl/nano/pytorch/inference/multi_instance.py
imports: from typing import Union, List
  import torch
  from torch.utils.data.dataset import TensorDataset
  from torch.utils.data.dataloader import DataLoader
  from bigdl.nano.utils.common import invalidInputError, invalidOperationError
  from bigdl.nano.pytorch.model import AcceleratedLightningModule
label_desc: Use image node_id 1 to create a new _MultiInstanceModel object from inherited base classes: torch.nn with example: obj = _MultiInstanceModel(model, ps, send_queue, recv_queue, next_idx)