code: def test_scalar(self):
      res = x2num.make_np(1.1)
      assert isinstance(res, np.ndarray) and res.shape == (1,)
      res = x2num.make_np(1 << 64 - 1)  # uint64_max
      assert isinstance(res, np.ndarray) and res.shape == (1,)
      res = x2num.make_np(np.float16(1.00000087))
      assert isinstance(res, np.ndarray) and res.shape == (1,)
      if hasattr(np, "float128"):
          res = x2num.make_np(np.float128(1.00008 + 9))
          assert isinstance(res, np.ndarray) and res.shape == (1,)
      res = x2num.make_np(np.int64(100000000000))
      assert isinstance(res, np.ndarray) and res.shape == (1,)
  
file_path: tensorboardX/tests/test_numpy.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  import unittest
  from tensorboardX import x2num
label_desc: Use image node_id 1 for calling the NumpyTest obj's underlying member method code with example usage: obj.test_scalar() without return types