class_docstr: Custom container for layer registry functions.
class_docstr_tok: ["Custom","container","for","layer","registry","functions","."]
docstr: Returns the layer registry function for a given layer instance.
docstr_tok: ["Returns","the","layer","registry","function","for","a","given","layer","instance","."]
code: def lookup(
      self, layer_instance: tf.keras.layers.Layer
  ) -> type_aliases.RegistryFunction:
      """Returns the layer registry function for a given layer instance."""
      return self._registry[hash(layer_instance.__class__)]
  
file_path: privacy/tensorflow_privacy/privacy/fast_gradient_clipping/layer_registry.py
imports: from typing import Type
  import tensorflow
  from tensorflow_privacy.privacy.fast_gradient_clipping import type_aliases
  from tensorflow_privacy.privacy.fast_gradient_clipping.registry_functions.dense import dense_layer_computation
  from tensorflow_privacy.privacy.fast_gradient_clipping.registry_functions.embedding import embedding_layer_computation
label_desc: Use image node_id 3 for calling the LayerRegistry obj's underlying member method code with example usage: obj.lookup(layer_instance) and returns: self