code: def _get_layer_converter_fn(layer):
      """Get the right converter function for Keras"""
      layer_type = type(layer)
      if layer_type in _KERAS_LAYER_REGISTRY:
          return _KERAS_LAYER_REGISTRY[layer_type]
      else:
          raise TypeError(
              "Keras layer of type %s is not supported." % type(layer)
          )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/keras/_keras_converter.py
imports: from six import string_types
  from ...models.neural_network import NeuralNetworkBuilder
  from ...proto import FeatureTypes_pb2
  from collections import OrderedDict
  from ...models import datatypes, _METADATA_VERSION, _METADATA_SOURCE
  from ...models import MLModel
  from ...models import _MLMODEL_FULL_PRECISION, _MLMODEL_HALF_PRECISION, _VALID_MLMODEL_PRECISION_TYPES
  from ...models.utils import _convert_neural_network_spec_weights_to_fp16
  from ..._deps import _HAS_KERAS_TF
  from ..._deps import _HAS_KERAS2_TF
  from coremltools import __version__
label_desc: Use image node_id 2 for calling a global function with example usage: _get_layer_converter_fn(layer) and returns: _KERAS_LAYER_REGISTRY