class_docstr: An implementation that allows for easy classification of images
  using the state of the art MobileNet computer vision model.
class_docstr_tok: ["An","implementation","that","allows","for","easy","classification","of","images","using","the","state","of","the","art","MobileNet","computer","vision","model","."]
docstr: Sets the path to the pretrained weight.
docstr_tok: ["Sets","the","path","to","the","pretrained","weight","."]
code: def set_model_path(self, path: str) -> None:
      """
      Sets the path to the pretrained weight.
      """
      if os.path.isfile(path):
          self.__model_path = path
          self.__has_loaded_weights = False
      else:
          raise ValueError(
              "parameter path should be a path to the pretrianed weight file."
          )
  
file_path: ImageAI/imageai/densenet121/__init__.py
imports: import os, warnings
  from pathlib import Path
  from typing import List, Tuple
  import torch, torchvision
  import torch.nn.functional
  from torchvision import transforms
  from PIL import Image
label_desc: Use image node_id 4 for calling the DenseNet121Pretrained obj's underlying member method code with example usage: obj.set_model_path(path) without return types