code: def test_array_repr():
      array = chainerx.array([], chainerx.bool_)
      assert (
          "array([], shape=(0,), dtype=bool, "
          "device='native:0')" == str(array)
      )
  
      array = chainerx.array([False], chainerx.bool_)
      assert (
          "array([False], shape=(1,), dtype=bool, "
          "device='native:0')" == str(array)
      )
  
      array = chainerx.array([[0, 1, 2], [3, 4, 5]], chainerx.int8)
      assert (
          "array([[0, 1, 2],\n"
          "       [3, 4, 5]], shape=(2, 3), dtype=int8, "
          "device='native:0')"
      ) == str(array)
  
      array = chainerx.array(
          [[0, 1, 2], [3.25, 4, 5]], chainerx.float32
      )
      assert (
          "array([[0.  , 1.  , 2.  ],\n"
          "       [3.25, 4.  , 5.  ]], shape=(2, 3), dtype=float32, "
          "device='native:0')"
      ) == str(array)
  
imports: import copy
  import math
  import pickle
  import numpy
  import pytest
  import chainerx
  import chainerx.testing
  from chainerx_tests import array_utils
label_desc: Use image node_id 16 for calling a global function with example usage: test_array_repr() without return types