code: def test_float_int_min_max():
      # Conversion between float and int
      for in_dt in FLOAT_TYPES:
          finf = type_info(in_dt)
          arr = np.array([finf["min"], finf["max"]], dtype=in_dt)
          # Bug in numpy 1.6.2 on PPC leading to infs - abort
          if not np.all(np.isfinite(arr)):
              print(f"Hit PPC max -> inf bug; skip in_type {in_dt}")
              continue
          for out_dt in IUINT_TYPES:
              try:
                  with suppress_warnings():  # overflow
                      aw = SlopeInterArrayWriter(arr, out_dt)
              except ScalingError:
                  continue
              arr_back_sc = round_trip(aw)
              assert np.allclose(arr, arr_back_sc)
  
imports: import itertools
  from io import BytesIO
  from platform import machine, python_compiler
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ..arraywriters import ArrayWriter, ScalingError, SlopeArrayWriter, SlopeInterArrayWriter, WriterError, get_slope_inter, make_array_writer
  from ..casting import int_abs, sctypes, shared_range, type_info
  from ..testing import assert_allclose_safely, suppress_warnings
  from ..volumeutils import _dt_min_max, apply_read_scaling, array_from_file
label_desc: Use image node_id 21 for calling a global function with example usage: test_float_int_min_max() without return types