code: def test_nonint_str():
      """wcwidth._wcmatch_version(u'x.y.z') returns latest (str)."""
      # given
      given, expected = "x.y.z", wcwidth.list_versions()[-1]
      warnings.resetwarnings()
      wcwidth._wcmatch_version.cache_clear()
  
      # exercise
      with pytest.warns(UserWarning):
          # warns that given version is not valid
          result = wcwidth._wcmatch_version(given)
  
      # verify.
      assert result == expected
  
file_path: catboost/contrib/python/wcwidth/py2/tests/test_ucslevel.py
imports: import warnings
  import pytest
  import wcwidth
label_desc: Use image node_id 13 for calling a global function with example usage: test_nonint_str() without return types