code: def _get_layer_converter_fn(layer):
      
      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))
docs: Get the right converter function for Keras