code: def test_0d_recarray_repr(self):
      arr_0d = np.rec.array((1, 2.0, "2003"), dtype="<i4,<f8,<M8[Y]")
      assert_equal(
          repr(arr_0d),
          textwrap.dedent(
              """\
              rec.array((1, 2., '2003'),
                        dtype=[('f0', '<i4'), ('f1', '<f8'), ('f2', '<M8[Y]')])"""
          ),
      )
  
      record = arr_0d[()]
      assert_equal(repr(record), "(1, 2., '2003')")
      # 1.13 converted to python scalars before the repr
      try:
          np.set_printoptions(legacy="1.13")
          assert_equal(
              repr(record), "(1, 2.0, datetime.date(2003, 1, 1))"
          )
      finally:
          np.set_printoptions(legacy=False)
  
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 11 for calling the TestFromrecords obj's underlying member method code with example usage: obj.test_0d_recarray_repr() without return types