class_docstr: Represents metadata associated with call.
  
  Object must be initialized just before the call, on same thread.
class_docstr_tok: ["Represents","metadata","associated","with","call",".","Object","must","be","initialized","just","before","the","call",",","on","same","thread","."]
code: def mark_end(self):
      self.end_time_micros = int(time.time() * 1e6)
      if self.status == Status.UNKNOWN:
          self.status = Status.SUCCESS
      if self.direct_call:
          _THREAD_TO_SESSIONID.pop(self.thread_id)
  
file_path: datasets/tensorflow_datasets/core/logging/call_metadata.py
imports: import enum
  import threading
  import time
  from typing import Dict, Optional, Tuple
label_desc: Use image node_id 2 for calling the CallMetadata obj's underlying member method code with example usage: obj.mark_end() without return types