code: def _diff_entities(ref_name, ref_doc, doc):
      ref_js = json.dumps(ref_doc, **DUMP_KWARGS)
      js = json.dumps(doc, **DUMP_KWARGS)
      return _diff_lines(
          ref_name, ref_js.splitlines(True), js.splitlines(True)
      )
  
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 a global function with example usage: _diff_entities(ref_name, ref_doc, doc) and returns: _diff_lines