code: def get_registered_layer(name):
      """
      Args:
          name (str): the name of the layer, e.g. 'Conv2D'
      Returns:
          the wrapped layer function, or None if not registered.
      """
      ret = _LAYER_REGISTRY.get(name, None)
      if ret == _NameConflict:
          raise KeyError(
              "Layer named '{}' is registered with `@layer_register` more than once!".format(
                  name
              )
          )
      return ret
  
file_path: tensorpack/tensorpack/models/registry.py
imports: import copy
  import re
  import collections
  from functools import wraps
  import six
  import tensorflow
  from ..compat import tfv1
  from ..tfutils.argscope import get_arg_scope
  from ..tfutils.model_utils import get_shape_str
  from ..utils import logger
label_desc: Use image node_id 2 for calling a global function with example usage: get_registered_layer(name) and returns: ret