code: def test_different_transition_sizes(pretrain_file):
      """
      If the transition hidden size and embedding size are different, the model should still work
      """
      model = build_model(
          pretrain_file,
          "--pattn_num_layers",
          "0",
          "--lattn_d_proj",
          "0",
          "--transition_embedding_dim",
          "10",
          "--transition_hidden_size",
          "10",
          "--sentence_boundary_vectors",
          "everything",
      )
      run_forward_checks(model)
  
      model = build_model(
          pretrain_file,
          "--pattn_num_layers",
          "0",
          "--lattn_d_proj",
          "0",
          "--transition_embedding_dim",
          "20",
          "--transition_hidden_size",
          "10",
          "--sentence_boundary_vectors",
          "everything",
      )
      run_forward_checks(model)
  
      model = build_model(
          pretrain_file,
          "--pattn_num_layers",
          "0",
          "--lattn_d_proj",
          "0",
          "--transition_embedding_dim",
          "10",
          "--transition_hidden_size",
          "20",
          "--sentence_boundary_vectors",
          "everything",
      )
      run_forward_checks(model)
  
      model = build_model(
          pretrain_file,
          "--pattn_num_layers",
          "0",
          "--lattn_d_proj",
          "0",
          "--transition_embedding_dim",
          "10",
          "--transition_hidden_size",
          "10",
          "--sentence_boundary_vectors",
          "none",
      )
      run_forward_checks(model)
  
      model = build_model(
          pretrain_file,
          "--pattn_num_layers",
          "0",
          "--lattn_d_proj",
          "0",
          "--transition_embedding_dim",
          "20",
          "--transition_hidden_size",
          "10",
          "--sentence_boundary_vectors",
          "none",
      )
      run_forward_checks(model)
  
      model = build_model(
          pretrain_file,
          "--pattn_num_layers",
          "0",
          "--lattn_d_proj",
          "0",
          "--transition_embedding_dim",
          "10",
          "--transition_hidden_size",
          "20",
          "--sentence_boundary_vectors",
          "none",
      )
      run_forward_checks(model)
  
imports: import os
  import pytest
  import torch
  from stanza.models.common import pretrain
  from stanza.models.common.utils import set_random_seed
  from stanza.models.constituency import parse_transitions
  from stanza.tests import *
  from stanza.tests.constituency import test_parse_transitions
  from stanza.tests.constituency.test_trainer import build_trainer
label_desc: Use image node_id 34 for calling a global function with example usage: test_different_transition_sizes(pretrain_file) without return types