code: def test_floor_exact_16():
      # A normal integer can generate an inf in float16
      assert floor_exact(2**31, np.float16) == np.inf
      assert floor_exact(-(2**31), np.float16) == -np.inf
  
file_path: nibabel/nibabel/tests/test_floating.py
imports: import sys
  from contextlib import nullcontext
  import numpy
  import pytest
  from packaging.version import Version
  from ..casting import FloatingError, _check_maxexp, _check_nmant, ceil_exact, floor_exact, floor_log2, have_binary128, longdouble_precision_improved, ok_floats, on_powerpc, sctypes, type_info
  from ..testing import suppress_warnings
label_desc: Use image node_id 7 for calling a global function with example usage: test_floor_exact_16() without return types