code: def end(self):
      duration = time.time() - self.time_start
      log.info("Ending job %s (%.2f seconds)", self.job, duration)
      self.job = ""
      self.job_count = 0
  
      devices.torch_gc()
  
imports: import datetime
  import logging
  import threading
  import time
  from modules import errors, shared, devices
  from typing import Optional
label_desc: Use image node_id 13 for calling the State obj's underlying member method code with example usage: obj.end() without return types