code: def save(self, name, doc):
      path = os.path.join(self.path, name)
      os.makedirs(os.path.dirname(path), exist_ok=True)
      with open(path, "w", encoding="utf-8") as fp:
          self._save(doc, fp)
  
imports: import datetime
  import decimal
  import difflib
  import json
  import os
  import traceback
  from collections.abc import Iterable
  from typing import Any
label_desc: Use image node_id 3 for calling the Reference obj's underlying member method code with example usage: obj.save(name, doc) without return types