code: def are_equal_images(a: Image.Image, b: Image.Image) -> bool:
      return a.size == b.size and np.allclose(np.array(a), np.array(b))
  
file_path: AugLy/augly/tests/image_tests/base_unit_test.py
imports: import os
  import tempfile
  import unittest
  from typing import Any, Callable, Dict, List, Optional
  import numpy
  from augly.tests import ImageAugConfig
  from augly.utils import pathmgr, TEST_URI
  from PIL import Image
label_desc: Use image node_id 1 for calling a global function with example usage: are_equal_images(a, b) and returns: unknown