class_docstr: Interface for tensorflow models.
docstr: Checks if the last layer is an instance of tf.keras.layers.Softmax.
docstr_tok: ["Checks","if","the","last","layer","is","an","instance","of","tf.keras.layers.Softmax","."]
code: def _last_layer_is_softmax(self) -> bool:
      """
      Checks if the last layer is an instance of tf.keras.layers.Softmax.
      """
      last_layer = self.model.layers[-1]
      return isinstance(last_layer, tf.keras.layers.Softmax)
  
imports: from __future__ import annotations
  from typing import Dict, Optional, Tuple, List, Union, Generator
  from keras.layers import Dense
  from keras import activations
  from keras import Model
  from keras.models import clone_model
  import numpy
  import tensorflow
  from warnings import warn
  from cachetools import cachedmethod, LRUCache
  import operator
  from quantus.helpers.model.model_interface import ModelInterface
  from quantus.helpers import utils
label_desc: Use image node_id 3 for calling the TensorFlowModel obj's underlying member method code with example usage: obj._last_layer_is_softmax() and returns: isinstance