docstr: The setup class method for the basic test case with all default values.
docstr_tok: ["The","setup","class","method","for","the","basic","test","case","with","all","default","values","."]
code: def setUpClass(
      self,
      input_image_shape=(3, 224, 224),
      model="resnet-50",
      feature="awesome_image",
  ):
      """
      The setup class method for the basic test case with all default values.
      """
      self.feature = feature
      self.label = None
      self.input_image_shape = input_image_shape
      self.pre_trained_model = model
  
      # Create the model
      self.def_opts = {
          "model": "resnet-50",
          "verbose": True,
      }
  
      # Get deep features if needed
      if self.feature.endswith("WithDeepFeature"):
          data[self.feature] = get_deep_features(
              data["awesome_image"],
              self.feature.split("_WithDeepFeature")[0],
          )
  
      # Model
      self.model = tc.image_similarity.create(
          data,
          feature=self.feature,
          label=None,
          model=self.pre_trained_model,
      )
      self.nn_model = self.model.feature_extractor
      self.lm_model = self.model.similarity_model
      self.opts = self.def_opts.copy()
  
      # Answers
      self.get_ans = {
          "similarity_model": lambda x: type(x)
          == tc.nearest_neighbors.NearestNeighborsModel,
          "feature": lambda x: x == self.feature,
          "training_time": lambda x: x > 0,
          "input_image_shape": lambda x: x == self.input_image_shape,
          "label": lambda x: x == self.label,
          "feature_extractor": lambda x: callable(x.extract_features),
          "num_features": lambda x: x == self.lm_model.num_features,
          "num_examples": lambda x: x == self.lm_model.num_examples,
          "model": lambda x: (
              x == self.pre_trained_model
              or (
                  self.pre_trained_model == "VisionFeaturePrint_Screen"
                  and x == "VisionFeaturePrint_Scene"
              )
          ),
      }
      self.fields_ans = self.get_ans.keys()
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import pytest
  import turicreate
  from turicreate.toolkits._internal_utils import _mac_ver
  import tempfile
  from .None import util
  from turicreate.toolkits._main import ToolkitError
  from turicreate.toolkits.image_analysis.image_analysis import MODEL_TO_FEATURE_SIZE_MAPPING, get_deep_features
  import numpy
label_desc: Use image node_id 1 for calling the ImageSimilarityTest obj's underlying member method code with example usage: obj.setUpClass(input_image_shape, model, feature) without return types