code: def __init__(self, pretrained=True, layers=None):
      from torchvision.models.mobilenetv3 import mobilenet_v3_large
  
      encoder = mobilenet_v3_large(pretrained=pretrained)
  
      if layers is None:
          layers = [1, 2, 3, 4]
      super().__init__(
          [16, 24, 40, 112, 960], [2, 4, 8, 16, 32], layers
      )
      from torchvision.models import MobileNetV3
  
      self.layer0 = encoder.features[0:2]
      self.layer1 = encoder.features[2:4]
      self.layer2 = encoder.features[4:7]
      self.layer3 = encoder.features[7:13]
      self.layer4 = encoder.features[13:]
  
file_path: pytorch-toolbelt/pytorch_toolbelt/modules/encoders/mobilenet.py
imports: from .common import EncoderModule, _take, make_n_channel_input
  from ..backbone.mobilenet import MobileNetV2
label_desc: Use image node_id 1 to create a new MobileNetV3Large object from inherited base classes: EncoderModule with example: obj = MobileNetV3Large(pretrained, layers)