docstr: Test if the number of returned parameters is correct
  
  See: https://github.com/huggingface/transformers/issues/25978
docstr_tok: ["Test","if","the","number","of","returned","parameters","is","correct","See",":","https",":","\/\/github.com\/huggingface\/transformers\/issues\/25978"]
code: def test_quantization_num_parameters(self):
      r"""
      Test if the number of returned parameters is correct
  
      See: https://github.com/huggingface/transformers/issues/25978
      """
      num_params_4bit = self.model_4bit.num_parameters()
      num_params_fp16 = self.model_fp16.num_parameters()
  
      self.assertEqual(num_params_4bit, num_params_fp16)
  
imports: import gc
  import importlib.metadata
  import tempfile
  import unittest
  from packaging import version
  from transformers import AutoConfig, AutoModel, AutoModelForCausalLM, AutoModelForSeq2SeqLM, AutoModelForSequenceClassification, AutoTokenizer, BitsAndBytesConfig, pipeline
  from transformers.testing_utils import is_bitsandbytes_available, is_torch_available, require_accelerate, require_bitsandbytes, require_torch, require_torch_gpu, require_torch_multi_gpu, slow, torch_device
label_desc: Use image node_id 3 for calling the Bnb4BitTest obj's underlying member method code with example usage: obj.test_quantization_num_parameters() without return types