docstr: Just tests that saving and loading works without crashs.
  
  Currently no test of the values themselves
docstr_tok: ["Just","tests","that","saving","and","loading","works","without","crashs",".","Currently","no","test","of","the","values","themselves"]
code: def test_save_load_model(self, wordvec_pretrain_file):
      """
      Just tests that saving and loading works without crashs.
  
      Currently no test of the values themselves
      """
      with tempfile.TemporaryDirectory(
          dir=TEST_WORKING_DIR
      ) as tmpdirname:
          tr = build_trainer(wordvec_pretrain_file)
  
          # attempt saving
          filename = os.path.join(tmpdirname, "parser.pt")
          tr.save(filename)
  
          assert os.path.exists(filename)
  
          # load it back in
          tr.load(filename)
  
imports: from collections import defaultdict
  import logging
  import pathlib
  import tempfile
  import pytest
  import torch
  from torch import optim
  from stanza import Pipeline
  from stanza.models import constituency_parser
  from stanza.models.common import pretrain
  from stanza.models.common.bert_embedding import load_bert, load_tokenizer
  from stanza.models.common.foundation_cache import FoundationCache
  from stanza.models.common.utils import set_random_seed
  from stanza.models.constituency import lstm_model
  from stanza.models.constituency import trainer
  from stanza.models.constituency import tree_reader
  from stanza.tests import *
label_desc: Use image node_id 5 for calling the TestTrainer obj's underlying member method code with example usage: obj.test_save_load_model(wordvec_pretrain_file) without return types