code: def make_relative_timing_fn():
      """Make a function that logs the duration since it was made."""
      start_time = time.time()
  
      def format_relative_time():
          time_delta = time.time() - start_time
          return str(datetime.timedelta(seconds=time_delta))
  
      def log_relative_time():
          tf.logging.info("Timing: %s", format_relative_time())
  
      return log_relative_time
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import datetime
  import math
  import os
  import pprint
  import random
  import time
  import six
  from tensor2tensor.bin import t2t_trainer
  from tensor2tensor.models.research import rl
  from tensor2tensor.rl import rl_utils
  from tensor2tensor.rl import trainer_model_based_params
  from tensor2tensor.rl.dopamine_connector import DQNLearner
  from tensor2tensor.rl.restarter import Restarter
  from tensor2tensor.utils import trainer_lib
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling a global function with example usage: make_relative_timing_fn() and returns: log_relative_time, str