code: def compare(x, y):
      ss = []
      ln = []
      ln2 = []
  
      ll = (max(len(x), len(y)) + 0xF) // 0x10 * 0x10
  
      highlight = False
      next_highlight = 0x2B
      for i in range(ll + 1):
          if i == next_highlight:
              highlight = True
              if i < len(y):
                  next_highlight += y[i] + 8
              else:
                  next_highlight = None
          else:
              highlight = False
          a = (
              "%02X" % x[i] if i < len(x) else "--",
              "%02X" % y[i] if i < len(y) else "--",
          )
  
          def fj(x):
              ss = []
              for i in range(0, 0x10, 4):
                  ss.append(" ".join(x[i : i + 4]))
              return "  ".join(ss)
  
          if i != 0 and i % 0x10 == 0:
              ss.append(
                  "%8X: " % (i - 0x10)
                  + fj(ln)
                  + "  |  "
                  + fj(ln2)
                  + "\n"
              )
              ln = []
              ln2 = []
          if a[0] != a[1] and a[0] != "--" and a[1] != "--":
              ln.append(colored(a[0], "green"))
              ln2.append(colored(a[1], "red"))
          else:
              if highlight:
                  ln.append(colored(a[0], "yellow"))
                  ln2.append(colored(a[1], "yellow"))
              else:
                  if i in aneb:
                      ln.append(colored(a[0], "white"))
                      ln2.append(colored(a[1], "white"))
                  else:
                      ln.append(a[0])
                      ln2.append(a[1])
      return "".join(ss)
  
file_path: tinygrad/extra/accel/ane/2_compile/hwx_parse.py
imports: import sys
  from hexdump import hexdump
  from macholib import MachO
  from tinygrad.helpers import getenv
  from macholib import SymbolTable
  from ane import ANE_Struct, ANE
  from termcolor import colored
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: compare(x, y) and returns: str, str