code: def check_frame(actual, expected):
      exp_shape = (len(expected), len(expected[0]))
      assert (
          actual.shape == exp_shape
      ), "Incorrect frame size: actual = %r vs expected = %r" % (
          actual.shape,
          exp_shape,
      )
      data = [
          [int(e) for e in row]
          for row in actual.as_data_frame(False, False)
      ]
      assert (
          actual.shape == exp_shape
      ), "Incorrect frame size: actual = %r vs expected = %r" % (
          actual.shape,
          exp_shape,
      )
      assert (
          data == expected
      ), "Frames do not coincide:\nActual: %r\nExpected: %r\n" % (
          data,
          expected,
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: check_frame(actual, expected) without return types