code: def test_string_array():
      arr = m.create_string_array(True)
      assert str(arr.dtype) == "[('a', 'S3'), ('b', 'S3')]"
      assert m.print_string_array(arr) == [
          "a='',b=''",
          "a='a',b='a'",
          "a='ab',b='ab'",
          "a='abc',b='abc'",
      ]
      dtype = arr.dtype
      assert arr["a"].tolist() == [b"", b"a", b"ab", b"abc"]
      assert arr["b"].tolist() == [b"", b"a", b"ab", b"abc"]
      arr = m.create_string_array(False)
      assert dtype == arr.dtype
  
imports: import re
  import pytest
  import env
  from pybind11_tests import numpy_dtypes
label_desc: Use image node_id 14 for calling a global function with example usage: test_string_array() without return types