docstr: Handle special requirements of `.load()` protocol, usually up-converting older versions.
docstr_tok: ["Handle","special","requirements","of","`",".load","(",")","`","protocol",",","usually","up-converting","older","versions","."]
code: def _load_specials(self, *args, **kwargs):
      """Handle special requirements of `.load()` protocol, usually up-converting older versions."""
      super(FastTextKeyedVectors, self)._load_specials(*args, **kwargs)
      if not isinstance(self, FastTextKeyedVectors):
          raise TypeError(
              "Loaded object of type %s, not expected FastTextKeyedVectors"
              % type(self)
          )
      if (
          not hasattr(self, "compatible_hash")
          or self.compatible_hash is False
      ):
          raise TypeError(
              "Pre-gensim-3.8.x fastText models with nonstandard hashing are no longer compatible. "
              "Loading your old model into gensim-3.8.3 & re-saving may create a model compatible with gensim 4.x."
          )
      if not hasattr(self, "vectors_vocab_lockf") and hasattr(
          self, "vectors_vocab"
      ):
          self.vectors_vocab_lockf = ones(1, dtype=REAL)
      if not hasattr(self, "vectors_ngrams_lockf") and hasattr(
          self, "vectors_ngrams"
      ):
          self.vectors_ngrams_lockf = ones(1, dtype=REAL)
      # fixup mistakenly overdimensioned gensim-3.x lockf arrays
      if len(self.vectors_vocab_lockf.shape) > 1:
          self.vectors_vocab_lockf = ones(1, dtype=REAL)
      if len(self.vectors_ngrams_lockf.shape) > 1:
          self.vectors_ngrams_lockf = ones(1, dtype=REAL)
      if not hasattr(self, "buckets_word") or not self.buckets_word:
          self.recalc_char_ngram_buckets()
      if not hasattr(self, "vectors") or self.vectors is None:
          self.adjust_vectors()
  
imports: import logging
  import numpy
  from numpy import ones, vstack, float32
  import gensim.models._fasttext_bin
  from gensim.models.word2vec import Word2Vec
  from gensim.models.keyedvectors import KeyedVectors, prep_vectors
  from gensim import utils
  from gensim.utils import deprecated
  from gensim.models import keyedvectors
label_desc: Use image node_id 3 for calling the FastTextKeyedVectors obj's underlying member method code with example usage: obj._load_specials() without return types