code: def assert_deep_equal(a, b, msg=None):
      try:
          assert len(a) == len(b), (
              msg or f"got length {len(a)}, expected {len(b)}"
          )
      except Exception:
          assert a == b, msg
  
imports: import logging
  import os
  import shutil
  import sys
  import sysconfig
  import tempfile
  from io import BytesIO
  import pytest
  from packaging.version import parse
  from PIL import Image, ImageMath, features
label_desc: Use image node_id 2 for calling a global function with example usage: assert_deep_equal(a, b, msg) without return types