code: def get_layer_activation_name(layer):
      if hasattr(layer.activation, "name"):
          activation_name = layer.activation.name
      elif hasattr(layer.activation, "__name__"):
          activation_name = layer.activation.__name__
      else:
          activation_name = str(layer.activation)
      return activation_name
  
file_path: keras/keras/utils/model_visualization.py
imports: import os
  import sys
  from keras.api_export import keras_export
  from keras.utils import io_utils
label_desc: Use image node_id 4 for calling a global function with example usage: get_layer_activation_name(layer) and returns: activation_name