code: def test_checkpoint_name():
      """
      Test some expected results for the checkpoint names
      """
      # use os.path.split so that the test is agnostic of file separator on Linux or Windows
      checkpoint = utils.checkpoint_name(
          "saved_models", "kk_oscar_forward_charlm.pt", None
      )
      assert os.path.split(checkpoint) == (
          "saved_models",
          "kk_oscar_forward_charlm_checkpoint.pt",
      )
  
      checkpoint = utils.checkpoint_name(
          "saved_models", "kk_oscar_forward_charlm", None
      )
      assert os.path.split(checkpoint) == (
          "saved_models",
          "kk_oscar_forward_charlm_checkpoint",
      )
  
      checkpoint = utils.checkpoint_name(
          "saved_models", "kk_oscar_forward_charlm", "othername.pt"
      )
      assert os.path.split(checkpoint) == (
          "saved_models",
          "othername.pt",
      )
  
file_path: stanza/stanza/tests/common/test_utils.py
imports: import lzma
  import os
  import tempfile
  import pytest
  import stanza
  import stanza.models.common.utils
  from stanza.tests import *
label_desc: Use image node_id 10 for calling a global function with example usage: test_checkpoint_name() without return types