code: def get_summaries_log_dir(decode_hp, output_dir, dataset_split):
      """Get nested summaries_log_dir based on decode_hp."""
      child_dir = decode_hp.summaries_log_dir
      level_dir = "".join(
          [str(level) for level in decode_hp.level_interp]
      )
      if decode_hp.channel_interp == "all":
          rank_dir = "all"
      else:
          rank_dir = "rank_%d" % decode_hp.rank_interp
      child_dir = "%s/%s_%s" % (child_dir, level_dir, rank_dir)
      if dataset_split is not None:
          child_dir += "_{}".format(dataset_split)
      return os.path.join(output_dir, child_dir)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  import numpy
  from six.moves import zip
  from tensor2tensor.bin import t2t_trainer
  from tensor2tensor.data_generators import image_utils
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import common_video
  from tensor2tensor.models.research import glow_ops
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import decoding
  from tensor2tensor.utils import trainer_lib
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 6 for calling a global function with example usage: get_summaries_log_dir(decode_hp, output_dir, dataset_split) and returns: os