code: def check_dict(ref_dict, tst_dict):
      """Compare dictionaries of inputs and and those loaded from json files"""
  
      def to_list(x):
          if isinstance(x, tuple):
              x = list(x)
  
          if isinstance(x, list):
              for i, xel in enumerate(x):
                  x[i] = to_list(xel)
  
          return x
  
      failed_dict = {}
      for key, value in list(ref_dict.items()):
          newval = to_list(tst_dict[key])
          if newval != value:
              failed_dict[key] = (value, newval)
      return failed_dict
  
imports: import os
  import simplejson
  import logging
  import pytest
  from unittest import mock
  from ....None import config
  from ....testing import example_data
  from ...None import base
  from ..support import _inputs_help
label_desc: Use image node_id 1 for calling a global function with example usage: check_dict(ref_dict, tst_dict) and returns: failed_dict, x