docstr: Returns the internal torchvision model that this class contains
  to allow for more advanced fine-tuning and the full use of
  features presented in the PyTorch library.
  
  :return: The torchvision model.
  :rtype: torchvision.models.detection.faster_rcnn.FasterRCNN
  
  **Example**::
  
      >>> from detecto.core import Model
  
      >>> model = Model.load('model_weights.pth', ['tick', 'gate'])
      >>> torch_model = model.get_internal_model()
      >>> type(torch_model)
      <class 'torchvision.models.detection.faster_rcnn.FasterRCNN'>
docstr_tok: ["Returns","the","internal","torchvision","model","that","this","class","contains","to","allow","for","more","advanced","fine-tuning","and","the","full","use","of","features","presented","in","the","PyTorch","library",".",":","return",":","The","torchvision","model",".",":","rtype",":","torchvision.models.detection.faster_rcnn.FasterRCNN","*","*","Example","*","*",":",":",">",">",">","from","detecto.core","import","Model",">",">",">","model","=","Model.load","(","'model_weights.pth","'",",","[","'tick","'",",","'gate","'","]",")",">",">",">","torch_model","=","model.get_internal_model","(",")",">",">",">","type","(","torch_model",")","<","class","'torchvision.models.detection.faster_rcnn.FasterRCNN","'",">"]
code: def get_internal_model(self):
      """Returns the internal torchvision model that this class contains
      to allow for more advanced fine-tuning and the full use of
      features presented in the PyTorch library.
  
      :return: The torchvision model.
      :rtype: torchvision.models.detection.faster_rcnn.FasterRCNN
  
      **Example**::
  
          >>> from detecto.core import Model
  
          >>> model = Model.load('model_weights.pth', ['tick', 'gate'])
          >>> torch_model = model.get_internal_model()
          >>> type(torch_model)
          <class 'torchvision.models.detection.faster_rcnn.FasterRCNN'>
      """
  
      return self._model
  
imports: import os
  import pandas
  import random
  import torch
  import torchvision
  from detecto.config import config
  from detecto.utils import default_transforms, filter_top_predictions, xml_to_csv, _is_iterable, read_image
  from torchvision import transforms
  from torchvision.models.detection.faster_rcnn import FastRCNNPredictor
  from tqdm import tqdm
label_desc: Use image node_id 6 for calling the Model obj's underlying member method code with example usage: obj.get_internal_model() and returns: self