docstr: Simple test of a few 'epochs' of lemmatizer training
docstr_tok: ["Simple","test","of","a","few","'epochs","'","of","lemmatizer","training"]
code: def test_charlm_train(self, tmp_path, charlm_args):
      """
      Simple test of a few 'epochs' of lemmatizer training
      """
      saved_model = self.run_training(
          tmp_path, TRAIN_DATA, DEV_DATA, extra_args=charlm_args
      )
  
      # check that the charlm wasn't saved in here
      args = saved_model.args
      save_name = os.path.join(args["save_dir"], args["save_name"])
      checkpoint = torch.load(save_name, lambda storage, loc: storage)
      assert not any(
          x.startswith("contextual_embedding")
          for x in checkpoint["model"].keys()
      )
  
file_path: stanza/stanza/tests/lemma/test_lemma_trainer.py
imports: import pytest
  import glob
  import os
  import tempfile
  import torch
  from stanza.models import lemmatizer
  from stanza.models.lemma import trainer
  from stanza.tests import *
  from stanza.utils.training.common import choose_lemma_charlm, build_charlm_args
label_desc: Use image node_id 4 for calling the TestLemmatizer obj's underlying member method code with example usage: obj.test_charlm_train(tmp_path, charlm_args) without return types