code: def test_array_string_representations():
      a = array([1, 2, 3])
      assert str(a) == "1\n2\n3"
      assert repr(a) == "array[1, 2, 3]"
  
file_path: dlib/tools/python/test/test_array.py
imports: from dlib import array
  from pytest import raises
label_desc: Use image node_id 12 for calling a global function with example usage: test_array_string_representations() without return types