docstr: Test that half is compatible with __array_interface__
docstr_tok: ["Test","that","half","is","compatible","with","__array_interface__"]
code: def test_half_array_interface(self):
      """Test that half is compatible with __array_interface__"""
  
      class Dummy:
          pass
  
      a = np.ones((1,), dtype=float16)
      b = Dummy()
      b.__array_interface__ = a.__array_interface__
      c = np.array(b)
      assert_(c.dtype == float16)
      assert_equal(a, c)
  
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 17 for calling the TestHalf obj's underlying member method code with example usage: obj.test_half_array_interface() without return types