class_docstr: Interface for tensorflow models.
docstr: Use kwargs of predict call if specified, but don't overwrite object attribute.
  Filter out those, which are supported by Keras API.
docstr_tok: ["Use","kwargs","of","predict","call","if","specified",",","but","do","n't","overwrite","object","attribute",".","Filter","out","those",",","which","are","supported","by","Keras","API","."]
code: def _get_predict_kwargs(
      self, **kwargs: Dict[str, ...]
  ) -> Dict[str, ...]:
      """
      Use kwargs of predict call if specified, but don't overwrite object attribute.
      Filter out those, which are supported by Keras API.
      """
      all_kwargs = {**self.model_predict_kwargs, **kwargs}
      predict_kwargs = {
          k: all_kwargs[k]
          for k in all_kwargs
          if k in self._available_predict_kwargs
      }
      return predict_kwargs
  
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 2 for calling the TensorFlowModel obj's underlying member method code with example usage: obj._get_predict_kwargs() and returns: predict_kwargs