code: def get_mode(hparams):
      """Returns whether we should do MLPerf logging."""
      return "mlperf_mode" in hparams and hparams.mlperf_mode
  
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 1 for calling a global function with example usage: get_mode(hparams) and returns: unknown