code: def assert_equal(self, name, doc, update_ref=False):
      if update_ref or os.environ.get("UPDATE_REF") == "1":
          self.save(name, doc)
      ref = self.load(name)
      self._diff(name, ref, doc)
  
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 4 for calling the Reference obj's underlying member method code with example usage: obj.assert_equal(name, doc, update_ref) without return types