code: def __init__(self, model_type):
      super().__init__()
      assert model_type in self.MODEL_TYPES_ISL
      model, _ = load_model(model_type)
      self.model = model
      self.model.train = disabled_train
  
imports: import math
  import torch
  import numpy
  import torch.nn
  from torchvision.transforms import Compose
  from .core.dpt_depth import DPTDepthModel
  from .core.midas_net import MidasNet
  from .core.midas_net_custom import MidasNet_small
  from .core.transforms import Resize, NormalizeImage, PrepareForNet
  from .....misc.toolkit import download_model
label_desc: Use image node_id 1 to create a new MiDaSInference object from inherited base classes: nn with example: obj = MiDaSInference(model_type)