def _compare_by_version(path1, path2):
 if (path1.source == path2.source):
  if (path1.source_version_num > path2.source_version_num):
   return path1
  else:
   return path2
 return None

def _compare_by_version ( path1 , path2 ) : if ( path1 . source == path2 . source ) : if ( path1 . source_version_num > path2 . source_version_num ) : return path1 else : return path2 return None
returns the current/latest learned path .