class_docstr: Check the creation of zero-valued arrays
class_docstr_tok: ["Check","the","creation","of","zero-valued","arrays"]
code: def content_check(self, ua, ua_scalar, nbytes):
      # Check the length of the unicode base type
      assert_(int(ua.dtype.str[2:]) == self.ulen)
      # Check the length of the data buffer
      assert_(buffer_length(ua) == nbytes)
      # Small check that data in array element is ok
      assert_(ua_scalar == "")
      # Encode to ascii and double check
      assert_(ua_scalar.encode("ascii") == b"")
      # Check buffer lengths for scalars
      assert_(buffer_length(ua_scalar) == 0)
  
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 CreateZeros obj's underlying member method code with example usage: obj.content_check(ua, ua_scalar, nbytes) without return types