code: def dump(self, path):
      data = self._get_data()
      Path(path).write_text(json.dumps(data), encoding="utf-8")
  
imports: import json
  from pathlib import Path
  import abc
  from ..report.serialize import figure2html
label_desc: Use image node_id 2 for calling the Plot obj's underlying member method code with example usage: obj.dump(path) without return types