class_docstr: Test getting and setting global print options.
class_docstr_tok: ["Test","getting","and","setting","global","print","options","."]
code: def test_dtype_linewidth_wrapping(self):
      np.set_printoptions(linewidth=75)
      assert_equal(
          repr(np.arange(10, 20.0, dtype="f4")),
          "array([10., 11., 12., 13., 14., 15., 16., 17., 18., 19.], dtype=float32)",
      )
      assert_equal(
          repr(np.arange(10, 23.0, dtype="f4")),
          textwrap.dedent(
              """\
              array([10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22.],
                    dtype=float32)"""
          ),
      )
  
      styp = "<U4"
      assert_equal(
          repr(np.ones(3, dtype=styp)),
          "array(['1', '1', '1'], dtype='{}')".format(styp),
      )
      assert_equal(
          repr(np.ones(12, dtype=styp)),
          textwrap.dedent(
              """\
              array(['1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],
                    dtype='{}')""".format(
                  styp
              )
          ),
      )
  
imports: import sys
  import gc
  from hypothesis import given
  from hypothesis.extra import numpy
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, assert_warns, HAS_REFCOUNT, assert_raises_regex
  from numpy.core.arrayprint import _typelessdata
  import textwrap
label_desc: Use image node_id 16 for calling the TestPrintOptions obj's underlying member method code with example usage: obj.test_dtype_linewidth_wrapping() without return types