code: def findDictDiff(d1, d2, path=""):
      for k in d1:
          if k in d2:
              if isinstance(d1[k], dict):
                  findDictDiff(
                      d1[k],
                      d2[k],
                      "%s -> %s" % (path, k) if path else k,
                  )
              else:
                  _assert_equal(d1[k], d2[k])
          else:
              raise RuntimeError(
                  "%s%s as key not in d2\n"
                  % ("%s: " % path if path else "", k)
              )
  
imports: import numpy
  import pytest
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH, _NEED_IMPORT_PADDLE, _NEED_IMPORT_JITTOR, _NEED_IMPORT_ONEFLOW
  from fastNLP.core.collators.collator import Collator
  from ...helpers.utils import Capturing
label_desc: Use image node_id 2 for calling a global function with example usage: findDictDiff(d1, d2, path) without return types