code: def _check(expected, actual):
      for key in set(expected) | set(actual):
          if key in expected:
              assert actual[key] == expected[key]
          else:
              assert actual[key] is None or actual[key] is False
  
file_path: lets-plot/python-package/test/plot/test_scale_convenience.py
imports: import pytest
  from lets_plot.plot.core import FeatureSpecArray, DummySpec
  from lets_plot.plot.scale_convenience import *
label_desc: Use image node_id 7 for calling a global function with example usage: _check(expected, actual) without return types