code: def get_encoder(state_per_phone):
      config = deepcopy(config_global)
      config.state_per_phone = state_per_phone
      config.num_chars = 24
      return Encoder(
          config.num_chars,
          config.state_per_phone,
          config.prenet_dim,
          config.encoder_n_convolutions,
      ).to(device)
  
imports: import os
  import random
  import unittest
  from copy import deepcopy
  import torch
  from tests import get_tests_output_path
  from TTS.tts.configs.overflow_config import OverflowConfig
  from TTS.tts.layers.overflow.common_layers import Encoder, Outputnet, OverflowUtils
  from TTS.tts.layers.overflow.decoder import Decoder
  from TTS.tts.layers.overflow.neural_hmm import EmissionModel, NeuralHMM, TransitionModel
  from TTS.tts.models.overflow import Overflow
  from TTS.tts.utils.helpers import sequence_mask
  from TTS.utils.audio import AudioProcessor
label_desc: Use image node_id 1 for calling the TestOverflowEncoder obj's underlying member method code with example usage: obj.get_encoder(state_per_phone) and returns: Encoder