code: def rename_tflayer_get_variable():
      """
      Rename all :func:`tf.get_variable` with rules that transforms tflayer style to tensorpack style.
  
      Returns:
          A context where the variables are renamed.
  
      Example:
  
      .. code-block:: python
  
          with rename_tflayer_get_variable():
              x = tf.layer.conv2d(input, 3, 3, name='conv0')
              # variables will be named 'conv0/W', 'conv0/b'
      """
      mapping = {
          "kernel": "W",
          "bias": "b",
          "moving_mean": "mean/EMA",
          "moving_variance": "variance/EMA",
      }
      return rename_get_variable(mapping)
  
file_path: tensorpack/tensorpack/models/tflayer.py
imports: import functools
  import six
  import tensorflow
  from ..tfutils.common import get_tf_version_tuple
  from ..tfutils.varreplace import custom_getter_scope
  from ..utils.argtools import get_data_format
label_desc: Use image node_id 4 for calling a global function with example usage: rename_tflayer_get_variable() and returns: rename_get_variable