code: def __init__(self, pretrained=True, layers=None):
      from torchvision.models.mobilenetv3 import mobilenet_v3_small
  
      encoder = mobilenet_v3_small(pretrained=pretrained)
  
      if layers is None:
          layers = [1, 2, 3, 4]
      super().__init__([16, 16, 24, 48, 576], [2, 4, 8, 16, 32], layers)
      from torchvision.models import MobileNetV3
  
      self.layer0 = encoder.features[0:1]
      self.layer1 = encoder.features[1:2]
      self.layer2 = encoder.features[2:4]
      self.layer3 = encoder.features[4:9]
      self.layer4 = encoder.features[9:]
  
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 MobileNetV3Small object from inherited base classes: EncoderModule with example: obj = MobileNetV3Small(pretrained, layers)