class_docstr: Custom container for layer registry functions.
class_docstr_tok: ["Custom","container","for","layer","registry","functions","."]
docstr: Checks if a layer instance's class is in the registry.
docstr_tok: ["Checks","if","a","layer","instance","'s","class","is","in","the","registry","."]
code: def is_elem(self, layer_instance: tf.keras.layers.Layer) -> bool:
      """Checks if a layer instance's class is in the registry."""
      return hash(layer_instance.__class__) in self._registry
  
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 2 for calling the LayerRegistry obj's underlying member method code with example usage: obj.is_elem(layer_instance) and returns: unknown