code: def disable_layer_logging():
      """
      Disable the shape logging for all layers from this moment on. Can be
      useful when creating multiple towers.
      """
  
      class ContainEverything:
          def __contains__(self, x):
              return True
  
      # can use nonlocal in python3, but how
      globals()["_LAYER_LOGGED"] = ContainEverything()
  
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 3 for calling a global function with example usage: disable_layer_logging() and returns: True