code: def test_nmant():
      for t in IEEE_floats:
          assert type_info(t)["nmant"] == np.finfo(t).nmant
      if (LD_INFO["nmant"], LD_INFO["nexp"]) == (63, 15):
          assert type_info(np.longdouble)["nmant"] == 63
  
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 3 for calling a global function with example usage: test_nmant() without return types