code: def _images_equal(image1, image2):
      # note that images saved and loaded from disk must
      # use a lossless format, otherwise this equality will not hold
      return np.all(np.array(image1) == np.array(image2))
  
imports: import json
  import os
  import sys
  import tempfile
  import unittest
  import warnings
  from io import BytesIO
  from unittest import mock
  import numpy
  import tqdm
  from PIL import Image
  import lightly
label_desc: Use image node_id 1 for calling a global function with example usage: _images_equal(image1, image2) and returns: np