code: def test_scalar_cutoffs(self):
      # test that both the str and repr of np.float64 behaves
      # like python floats in python3.
      def check(v):
          assert_equal(str(np.float64(v)), str(v))
          assert_equal(str(np.float64(v)), repr(v))
          assert_equal(repr(np.float64(v)), f"np.float64({v!r})")
          assert_equal(repr(np.float64(v)), f"np.float64({v})")
  
      # check we use the same number of significant digits
      check(1.12345678901234567890)
      check(0.0112345678901234567890)
  
      # check switch from scientific output to positional and back
      check(1e-5)
      check(1e-4)
      check(1e15)
      check(1e16)
  
file_path: numpy/numpy/_core/tests/test_scalarprint.py
imports: import code
  import platform
  import pytest
  import sys
  from tempfile import TemporaryFile
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, IS_MUSL
label_desc: Use image node_id 2 for calling the TestRealScalars obj's underlying member method code with example usage: obj.test_scalar_cutoffs() without return types