class_docstr: A hierarchical logger that tracks the execution flow of the code, along
  with how long we're spending in each block.  Usage:
  
      @htrack(None)
      def compute_stuff(...):
          with htrack_block('Training'):
              hlog('something')
  
  Output:
  
      Training {
        something
      } [0s]
class_docstr_tok: ["A","hierarchical","logger","that","tracks","the","execution","flow","of","the","code",",","along","with","how","long","we","'re","spending","in","each","block",".","Usage",":","@","htrack","(","None",")","def","compute_stuff","(","...",")",":","with","htrack_block","(","'Training","'",")",":","hlog","(","'something","'",")","Output",":","Training","{","something","}","[","0s","]"]
code: def track_end(self) -> None:
      t = time.time() - self.start_times.pop()
      print(self.indent() + "} [%s]" % (format_time(t)))
      sys.stdout.flush()
  
file_path: H2O/h2o_hf/helm/src/helm/common/hierarchical_logger.py
imports: import sys
  import time
  from typing import Any, Callable, List, Optional
label_desc: Use image node_id 4 for calling the HierarchicalLogger obj's underlying member method code with example usage: obj.track_end() without return types