code: def contains_any_activation(layer: Layer) -> bool:
      """Check whether layer contains any activation or is activation layer.
  
      :param layer: Keras layer to check
      :type layer: Layer
      :return: True if activation was found.
      :rtype: bool
      """
  
      return hasattr(layer, "activation") or isinstance(
          layer, ACTIVATION_LAYERS
      )
  
imports: from __future__ import annotations
  import tensorflow.keras.layers
  from tensorflow import Module, keras
  import innvestigate.backend
  from innvestigate.backend.types import Layer, Model
label_desc: Use image node_id 3 for calling a global function with example usage: contains_any_activation(layer) and returns: unknown