code: def count_parameters(model):
      r"""Count number of trainable parameters in a network"""
      return sum(
          p.numel() for p in model.parameters() if p.requires_grad
      )
  
imports: import os
  import unittest
  import torch
  from tests import get_tests_input_path
  from TTS.vc.configs.freevc_config import FreeVCConfig
  from TTS.vc.models.freevc import FreeVC
label_desc: Use image node_id 1 for calling a global function with example usage: count_parameters(model) and returns: sum