class_docstr: ImageNet Dataset [DDS+09]_.
  
  Requires ImageNet in ImageFolder-readable format. 
  ImageNet can be downloaded from http://www.image-net.org. See
  `here <https://pytorch.org/docs/master/torchvision/datasets.html#torchvision.datasets.ImageFolder>`_
  for more information about the format.
  
  .. [DDS+09] Deng, J., Dong, W., Socher, R., Li, L., Li, K., & Fei-Fei, L. (2009). ImageNet: A large-scale hierarchical image database. 2009 IEEE Conference on Computer Vision and Pattern Recognition, 248-255.
class_docstr_tok: ["ImageNet","Dataset","[","DDS+09","]","_",".","Requires","ImageNet","in","ImageFolder-readable","format",".","ImageNet","can","be","downloaded","from","http",":","\/\/www.image-net.org",".","See","`","here","<","https",":","\/\/pytorch.org\/docs\/master\/torchvision\/datasets.html","#","torchvision.datasets.ImageFolder",">","`","_","for","more","information","about","the","format",".","..","[","DDS+09","]","Deng",",","J.",",","Dong",",","W.",",","Socher",",","R.",",","Li",",","L.",",","Li",",","K.",",","&","Fei-Fei",",","L.","(","2009",")",".","ImageNet",":","A","large-scale","hierarchical","image","database",".","2009","IEEE","Conference","on","Computer","Vision","and","Pattern","Recognition",",","248-255","."]
docstr_tok: []
code: def get_model(self, arch, pretrained):
      """ """
      return imagenet_models.__dict__[arch](
          num_classes=self.num_classes, pretrained=pretrained
      )
  
imports: import pathlib
  import torch
  import torch.utils.data
  from .None import imagenet_models, cifar_models
  from torchvision import transforms, datasets
  from .tools import constants
  from .tools import openimgs_helpers
  from .None import data_augmentation
  from .None import loaders
  from .tools.helpers import get_label_mapping
label_desc: Use image node_id 2 for calling the ImageNet obj's underlying member method code with example usage: obj.get_model(arch, pretrained) and returns: imagenet_models