code: def test_truncate_utf_8_text(data, limit, Whence, msg, expected):
      assert strings.truncate(data, limit, Whence, msg) == expected
  
imports: import pytest
  import six
  from library.python import strings
label_desc: Use image node_id 18 for calling a global function with example usage: test_truncate_utf_8_text(data, limit, Whence, msg, expected) without return types