def _convert_timestamps_to_datetimes(image_meta):
 for attr in ['created_at', 'updated_at', 'deleted_at']:
  if image_meta.get(attr):
   image_meta[attr] = timeutils.parse_isotime(image_meta[attr])
 return image_meta

def _convert_timestamps_to_datetimes ( image_meta ) : for attr in [ 'created_at' , 'updated_at' , 'deleted_at' ] : if image_meta . get ( attr ) : image_meta [ attr ] = timeutils . parse_isotime ( image_meta [ attr ] ) return image_meta
returns image with timestamp fields converted to datetime objects .