code: def setup_model(num_chars, num_speakers, c, enable_tflite=False):
      print(" > Using model: {}".format(c.model))
      MyModel = importlib.import_module(
          "TTS.tts.tf.models." + c.model.lower()
      )
      MyModel = getattr(MyModel, c.model)
      if c.model.lower() in "tacotron":
          raise NotImplementedError(" [!] Tacotron model is not ready.")
      # tacotron2
      model = MyModel(
          num_chars=num_chars,
          num_speakers=num_speakers,
          r=c.r,
          postnet_output_dim=c.audio["num_mels"],
          decoder_output_dim=c.audio["num_mels"],
          attn_type=c.attention_type,
          attn_win=c.windowing,
          attn_norm=c.attention_norm,
          prenet_type=c.prenet_type,
          prenet_dropout=c.prenet_dropout,
          forward_attn=c.use_forward_attn,
          trans_agent=c.transition_agent,
          forward_attn_mask=c.forward_attn_mask,
          location_attn=c.location_attn,
          attn_K=c.attention_heads,
          separate_stopnet=c.separate_stopnet,
          bidirectional_decoder=c.bidirectional_decoder,
          enable_tflite=enable_tflite,
      )
      return model
  
file_path: TTS/TTS/tts/tf/utils/generic_utils.py
imports: import datetime
  import importlib
  import pickle
  import numpy
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: setup_model(num_chars, num_speakers, c, enable_tflite) and returns: model