code: def is_different(old_value, new_value):
      
      if opt.has_numpy:
          return not opt.np.array_equal(old_value, new_value)
      else:
          return old_value != new_value
docs: Numpy aware comparison between two values.