code: def _is_activation_layer(layer):
      return (
          isinstance(layer, _keras.layers.core.Activation)
          or isinstance(
              layer, _keras.layers.advanced_activations.LeakyReLU
          )
          or isinstance(layer, _keras.layers.advanced_activations.PReLU)
          or isinstance(layer, _keras.layers.advanced_activations.ELU)
          or isinstance(
              layer, _keras.layers.advanced_activations.ThresholdedReLU
          )
          or isinstance(
              layer, _keras.layers.advanced_activations.Softmax
          )
      )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/keras/_keras2_converter.py
imports: import logging
  from six import string_types
  from ...models.neural_network import NeuralNetworkBuilder
  from ...models.neural_network.update_optimizer_utils import AdamParams
  from ...models.neural_network.update_optimizer_utils import SgdParams
  from ...proto import FeatureTypes_pb2
  from collections import OrderedDict
  from ...proto import Model_pb2
  from ...models import datatypes
  from ...models import MLModel
  from ...models.utils import save_spec
  from ..._deps import _HAS_KERAS2_TF
label_desc: Use image node_id 2 for calling a global function with example usage: _is_activation_layer(layer) and returns: unknown