def image_type(image_type):
 if (image_type == 'kernel'):
  return 'aki'
 if (image_type == 'ramdisk'):
  return 'ari'
 if (image_type not in ['aki', 'ari']):
  return 'ami'
 return image_type

def image_type ( image_type ) : if ( image_type == 'kernel' ) : return 'aki' if ( image_type == 'ramdisk' ) : return 'ari' if ( image_type not in [ 'aki' , 'ari' ] ) : return 'ami' return image_type
converts to a three letter image type .