code: def test_params_and_buffers(self):
      exempted_modules = [
          self.fp16_model.network.bn,
          self.fp16_model.network.dn.db1.bn,
          self.fp16_model.network.dn.db2.bn,
      ]
      for m in self.fp16_model.modules():
          expected_dtype = (
              torch.float if (m in exempted_modules) else torch.half
          )
          for p in m.parameters(recurse=False):
              assert p.dtype == expected_dtype
          for b in m.buffers(recurse=False):
              assert b.dtype in (expected_dtype, torch.int64)
  
imports: import unittest
  import torch
  import torch.nn
  from apex.fp16_utils import FP16Model
label_desc: Use image node_id 2 for calling the TestFP16Model obj's underlying member method code with example usage: obj.test_params_and_buffers() without return types