code: def test_get_latest_model(tmp_path: Path):
      path = tmp_path / "test_get_latest_model"
      path.mkdir()
      Path(path / "model_one.tar.gz").touch()
  
      # create second model later to be registered as distinct in Windows
      time.sleep(0.1)
      Path(path / "model_two.tar.gz").touch()
  
      path_of_latest = os.path.join(path, "model_two.tar.gz")
      assert rasa.model.get_latest_model(str(path)) == path_of_latest
  
file_path: rasa/tests/test_model.py
imports: import os
  import time
  from pathlib import Path
  from typing import Text, Optional
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  import rasa
  import rasa.constants
  import rasa.shared.utils.io
  import rasa.model
  from rasa.exceptions import ModelNotFound
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_latest_model(tmp_path) without return types