code: def to_dict(self):
      return {
          "job_id": self.job_id,
          "job_key": self.job_key,
          "server": self.server.conf.name,
          "command": self.command,
          "env_vars": self.env_vars,
          "tags": list(self.tags),
          "pid": self.pid,
          "exit_code": self.exit_code,
          "started": self.started,
          "stopped": self.stopped,
      }
  
imports: import io
  import sys
  from pathlib import Path
  from typing import Dict, Optional, List, Iterable
  import yaml
  from labml import logger
  from labml.logger import Text
  from labml_remote.configs import Configs
  from labml_remote.execute import UIMode
  from labml_remote.server import Server, SERVERS
label_desc: Use image node_id 4 for calling the Job obj's underlying member method code with example usage: obj.to_dict() and returns: dict