Display variant metafields for each variant

where will we paste these codes?