code: def compare_last_two_snapshots(obj, raw=False):
      
  
      if get_snapshot_count(obj) < 2:
          return {}
  
      version = get_version(obj)
  
      snap1 = get_snapshot_by_version(obj, version - 1)
      snap2 = get_snapshot_by_version(obj, version)
  
      return compare_snapshots(snap1, snap2, raw=raw)
docs: Helper to compare the last two snapshots directly