code: def dict(self):
      obj = {
          "skipped": self.skipped,
          "interrupted": self.interrupted,
          "job": self.job,
          "job_count": self.job_count,
          "job_timestamp": self.job_timestamp,
          "job_no": self.job_no,
          "sampling_step": self.sampling_step,
          "sampling_steps": self.sampling_steps,
      }
  
      return obj
  
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 11 for calling the State obj's underlying member method code with example usage: obj.dict() and returns: obj