Restructure 580-fp16 tests into functions am: 64bac15658
am: 20e8df1b06

Change-Id: Ie48eeb67840c0ee009ab57496cd0cd920ca4b723