class_docstr: Check the byteorder of unicode arrays in round-trip conversions
class_docstr_tok: ["Check","the","byteorder","of","unicode","arrays","in","round-trip","conversions"]
code: def test_values0D(self):
      # Check byteorder of 0-dimensional objects
      ua = np.array(self.ucs_value * self.ulen, dtype="U%s" % self.ulen)
      ua2 = ua.newbyteorder()
      # This changes the interpretation of the data region (but not the
      #  actual data), therefore the returned scalars are not
      #  the same (they are byte-swapped versions of each other).
      assert_(ua[()] != ua2[()])
      ua3 = ua2.newbyteorder()
      # Arrays must be equal after the round-trip
      assert_equal(ua, ua3)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal
label_desc: Use image node_id 1 for calling the ByteorderValues obj's underlying member method code with example usage: obj.test_values0D() without return types