class_docstr: An trained model that is ready to use for similarity. This model should not
  be constructed directly.
class_docstr_tok: ["An","trained","model","that","is","ready","to","use","for","similarity",".","This","model","should","not","be","constructed","directly","."]
docstr: A function to load a previously saved ImageClassifier
  instance.
  
  Parameters
  ----------
  unpickler : GLUnpickler
      A GLUnpickler file handler.
  
  version : int
      Version number maintained by the class writer.
docstr_tok: ["A","function","to","load","a","previously","saved","ImageClassifier","instance",".","Parameters","--","--","--","--","--","unpickler",":","GLUnpickler","A","GLUnpickler","file","handler",".","version",":","int","Version","number","maintained","by","the","class","writer","."]
code: def _load_version(cls, state, version):
      """
      A function to load a previously saved ImageClassifier
      instance.
  
      Parameters
      ----------
      unpickler : GLUnpickler
          A GLUnpickler file handler.
  
      version : int
          Version number maintained by the class writer.
      """
      _tkutl._model_version_check(
          version, cls._PYTHON_IMAGE_SIMILARITY_VERSION
      )
      from turicreate.toolkits.nearest_neighbors import (
          NearestNeighborsModel,
      )
  
      state["similarity_model"] = NearestNeighborsModel(
          state["similarity_model"]
      )
  
      # Correct models saved with a previous typo
      if state["model"] == "VisionFeaturePrint_Screen":
          state["model"] = "VisionFeaturePrint_Scene"
  
      if state["model"] == "VisionFeaturePrint_Scene" and _mac_ver() < (
          10,
          14,
      ):
          raise _ToolkitError(
              "Can not load model on this operating system. This model uses VisionFeaturePrint_Scene, "
              "which is only supported on macOS 10.14 and higher."
          )
      state[
          "feature_extractor"
      ] = _image_feature_extractor._create_feature_extractor(
          state["model"]
      )
      state["input_image_shape"] = tuple(
          [int(i) for i in state["input_image_shape"]]
      )
      return ImageSimilarityModel(state)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import time
  import turicreate
  from turicreate.toolkits._model import CustomModel
  import turicreate.toolkits._internal_utils
  from turicreate.toolkits._main import ToolkitError
  from turicreate.toolkits._model import PythonProxy
  from .._internal_utils import _mac_ver
  from ..None import _pre_trained_models
  from ..None import _image_feature_extractor
  from ..image_analysis import image_analysis
label_desc: Use image node_id 5 for calling the ImageSimilarityModel obj's underlying member method code with example usage: obj._load_version(cls, state, version) and returns: ImageSimilarityModel