docstr: Confirms a small number of known half values
docstr_tok: ["Confirms","a","small","number","of","known","half","values"]
code: def test_half_values(self):
      """Confirms a small number of known half values"""
      a = np.array(
          [
              1.0,
              -1.0,
              2.0,
              -2.0,
              0.0999755859375,
              0.333251953125,  # 1/10, 1/3
              65504,
              -65504,  # Maximum magnitude
              2.0 ** (-14),
              -(2.0 ** (-14)),  # Minimum normal
              2.0 ** (-24),
              -(2.0 ** (-24)),  # Minimum subnormal
              0,
              -1 / 1e1000,  # Signed zeros
              np.inf,
              -np.inf,
          ]
      )
      b = np.array(
          [
              0x3C00,
              0xBC00,
              0x4000,
              0xC000,
              0x2E66,
              0x3555,
              0x7BFF,
              0xFBFF,
              0x0400,
              0x8400,
              0x0001,
              0x8001,
              0x0000,
              0x8000,
              0x7C00,
              0xFC00,
          ],
          dtype=uint16,
      )
      b.dtype = float16
      assert_equal(a, b)
  
imports: import platform
  import pytest
  import numpy
  from numpy import uint16, float16, float32, float64
  from numpy.testing import assert_, assert_equal, _OLD_PROMOTION, IS_WASM
label_desc: Use image node_id 8 for calling the TestHalf obj's underlying member method code with example usage: obj.test_half_values() without return types