code: def test_jax_duck_typing_unary_operators(self):
      API_LIST = ["__neg__", "__pos__", "__abs__", "__invert__"]
      v = objax.TrainVar(jn.array([1, 2, 3, -4], dtype=jn.int32))
      for name in API_LIST:
          expected = getattr(v.value, name)()
          actual = getattr(v, name)()
          np.testing.assert_allclose(expected, actual)
      # __round__ required floating point input
      vf = objax.TrainVar(
          jn.array([1.2, 2.4, 3.7, -4.5], dtype=jn.float32)
      )
      np.testing.assert_allclose(vf.value.__round__(), vf.__round__())
  
imports: import unittest
  import numpy
  import jax.numpy
  import objax
label_desc: Use image node_id 13 for calling the TestVariable obj's underlying member method code with example usage: obj.test_jax_duck_typing_unary_operators() without return types