code: def tokenizer_from_json(json_string):
      """DEPRECATED."""
      tokenizer_config = json.loads(json_string)
      config = tokenizer_config.get("config")
  
      word_counts = json.loads(config.pop("word_counts"))
      word_docs = json.loads(config.pop("word_docs"))
      index_docs = json.loads(config.pop("index_docs"))
      # Integer indexing gets converted to strings with json.dumps()
      index_docs = {int(k): v for k, v in index_docs.items()}
      index_word = json.loads(config.pop("index_word"))
      index_word = {int(k): v for k, v in index_word.items()}
      word_index = json.loads(config.pop("word_index"))
  
      tokenizer = Tokenizer(**config)
      tokenizer.word_counts = word_counts
      tokenizer.word_docs = word_docs
      tokenizer.index_docs = index_docs
      tokenizer.word_index = word_index
      tokenizer.index_word = index_word
      return tokenizer
  
imports: import collections
  import hashlib
  import json
  import warnings
  import numpy
  from keras.api_export import keras_export
label_desc: Use image node_id 4 for calling a global function with example usage: tokenizer_from_json(json_string) and returns: tokenizer