class_docstr: This class tests the Detector Classifier.
class_docstr_tok: ["This","class","tests","the","Detector","Classifier","."]
code: def test_save(self):
      model = self.detector_classifier
      t_file = tempfile.NamedTemporaryFile()
      full_path = t_file.name
      t_file.close()
      base_name = os.path.basename(full_path)
      dir_name = os.path.dirname(full_path)
      model.save(base_name, path=dir_name)
  
      self.assertTrue(
          os.path.exists(full_path + "_classifier.optimizer")
      )
      self.assertTrue(os.path.exists(full_path + "_classifier.model"))
      os.remove(full_path + "_classifier.optimizer")
      os.remove(full_path + "_classifier.model")
  
      self.assertTrue(os.path.exists(full_path + "_detector.optimizer"))
      self.assertTrue(os.path.exists(full_path + "_detector.model"))
      os.remove(full_path + "_detector.optimizer")
      os.remove(full_path + "_detector.model")
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import os
  import tempfile
  import logging
  import unittest
  import numpy
  import torch
  import torch.nn
  import torch.optim
  from art.estimators.classification.pytorch import PyTorchClassifier
  from art.estimators.classification.detector_classifier import DetectorClassifier
  from tests.utils import TestBase, get_image_classifier_pt
label_desc: Use image node_id 11 for calling the TestDetectorClassifier obj's underlying member method code with example usage: obj.test_save() without return types