code: def _get_recurrent_activation_name_from_keras(activation):
      if activation == _keras.activations.sigmoid:
          activation_str = "SIGMOID"
      elif activation == _keras.activations.hard_sigmoid:
          activation_str = "SIGMOID_HARD"
      elif activation == _keras.activations.tanh:
          activation_str = "TANH"
      elif activation == _keras.activations.relu:
          activation_str = "RELU"
      elif activation == _keras.activations.linear:
          activation_str = "LINEAR"
      else:
          raise NotImplementedError(
              "activation %s not supported for Recurrent layer."
              % activation
          )
  
      return activation_str
  
imports: from .None import _utils
  import logging
  import keras
  import numpy
  from ...proto import NeuralNetwork_pb2
  from distutils.version import StrictVersion
label_desc: Use image node_id 1 for calling a global function with example usage: _get_recurrent_activation_name_from_keras(activation) and returns: activation_str