code: def to_str(self, indent=None):
      return json.dumps(self.__dict__, indent=indent)
  
imports: import json
  import logging
  import os
  import pathlib
  import shutil
  import tempfile
  import time
  import uuid
  from typing import Dict
label_desc: Use image node_id 2 for calling the SessionInfo obj's underlying member method code with example usage: obj.to_str(indent) and returns: json