code: def test_zero_width_strings(self):
      # Test for #6430, based on the test case from #1901
  
      cols = [["test"] * 3, [""] * 3]
      rec = np.rec.fromarrays(cols)
      assert_equal(rec["f0"], ["test", "test", "test"])
      assert_equal(rec["f1"], ["", "", ""])
  
      dt = np.dtype([("f0", "|S4"), ("f1", "|S")])
      rec = np.rec.fromarrays(cols, dtype=dt)
      assert_equal(rec.itemsize, 4)
      assert_equal(rec["f0"], [b"test", b"test", b"test"])
      assert_equal(rec["f1"], [b"", b"", b""])
  
imports: import collections.abc
  import textwrap
  from io import BytesIO
  from os import path
  from pathlib import Path
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, temppath
  from numpy.compat import pickle
label_desc: Use image node_id 19 for calling the TestFromrecords obj's underlying member method code with example usage: obj.test_zero_width_strings() without return types