code: def transformer_print(
      key, value=None, stack_offset=2, deferred=False, hparams=None
  ):
      if not hparams or not get_mode(hparams):
          return
      return _mlperf_print(
          key=key,
          value=value,
          benchmark=TRANSFORMER,  # pylint: disable=undefined-variable
          stack_offset=stack_offset,
          tag_set=TRANSFORMER_TAG_SET,
          deferred=deferred,
          root_dir=ROOT_DIR_TRANSFORMER,
      )
  
file_path: tensor2tensor/tensor2tensor/utils/mlperf_log.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import json
  import logging
  import os
  import re
  import sys
  import time
  import uuid
  from tensor2tensor.utils.mlperf_tags import *
label_desc: Use image node_id 4 for calling a global function with example usage: transformer_print(key, value, stack_offset, deferred, hparams) and returns: _mlperf_print