code: def convert_to_comparable(a, b):
      new_a, new_b = a, b
      if a.mode == "P":
          new_a = Image.new("L", a.size)
          new_b = Image.new("L", b.size)
          new_a.putdata(a.getdata())
          new_b.putdata(b.getdata())
      elif a.mode == "I;16":
          new_a = a.convert("I")
          new_b = b.convert("I")
      return new_a, new_b
  
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 1 for calling a global function with example usage: convert_to_comparable(a, b) and returns: new_a,  new_b