code: def _get_duration_microseconds(
      start_time_seconds, end_time_seconds
  ) -> int:
      """Returns the duration between start and end time in microseconds."""
      return max(
          int((end_time_seconds - start_time_seconds) * 1000000), 0
      )
  
imports: import os
  import threading
  import time
  from typing import Any, List, Optional, Text
  from tensorflow.core.util import event_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model.pywrap_saved_model import metrics
  from tensorflow.python.training import basic_session_run_hooks
  from tensorflow.python.training import monitored_session
  from tensorflow.python.training import saver
  from tensorflow.python.training import session_run_hook
  from tensorflow.python.training import training_util
  from tensorflow.python.training.summary_io import SummaryWriterCache
label_desc: Use image node_id 1 for calling a global function with example usage: _get_duration_microseconds(start_time_seconds, end_time_seconds) and returns: max