class_docstr: DEPRECATED.
code: def texts_to_matrix(self, texts, mode="binary"):
      sequences = self.texts_to_sequences(texts)
      return self.sequences_to_matrix(sequences, mode=mode)
  
imports: import collections
  import hashlib
  import json
  import warnings
  import numpy
  from keras.api_export import keras_export
label_desc: Use image node_id 8 for calling the Tokenizer obj's underlying member method code with example usage: obj.texts_to_matrix(texts, mode) and returns: self