code: def test_known_types(self):
      # Test we are correctly compiling parameters for known types
      for ftype, ma_like in (
          (np.float16, _float_ma[16]),
          (np.float32, _float_ma[32]),
          (np.float64, _float_ma[64]),
      ):
          assert_ma_equal(_discovered_machar(ftype), ma_like)
      # Suppress warning for broken discovery of double double on PPC
      ld_ma = _discovered_machar(np.longdouble)
      bytes = np.dtype(np.longdouble).itemsize
      if (ld_ma.it, ld_ma.maxexp) == (63, 16384) and bytes in (12, 16):
          # 80-bit extended precision
          assert_ma_equal(ld_ma, _float_ma[80])
      elif (ld_ma.it, ld_ma.maxexp) == (112, 16384) and bytes == 16:
          # IEE 754 128-bit
          assert_ma_equal(ld_ma, _float_ma[128])
  
imports: import functools
  import warnings
  from unittest import skipIf
  import numpy
  from pytest import raises
  from torch.testing._internal.common_utils import run_tests, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 2 for calling the TestMisc obj's underlying member method code with example usage: obj.test_known_types() without return types