code: def test_kannada_script():
      # This test adapted from https://www.unicode.org/L2/L2023/23107-terminal-suppt.pdf
      # |ರ್ಝೈ|
      # |123|
      phrase = (
          "\u0cb0"  # Repha, Category 'Lo', East Asian Width property 'N' -- KANNADA LETTER RA
          "\u0ccd"  # Joiner, Category 'Mn', East Asian Width property 'N' -- KANNADA SIGN VIRAMA
          "\u0c9d"  # Base, Category 'Lo', East Asian Width property 'N' -- KANNADA LETTER JHA
          "\u0cc8"
      )  # MatraUR, Category 'Mc', East Asian Width property 'N' -- KANNADA VOWEL SIGN AI
      # 23107-terminal-suppt.pdf suggests should be (2, 0, 3, 1)
      expect_length_each = (1, 0, 1, 0)
      # I believe the correct final width *should* be 3 or 4.
      expect_length_phrase = 2
  
      # exercise,
      length_each = tuple(map(wcwidth.wcwidth, phrase))
      length_phrase = wcwidth.wcswidth(phrase)
  
      # verify.
      assert length_each == expect_length_each
      assert length_phrase == expect_length_phrase
  
file_path: catboost/contrib/python/wcwidth/py3/tests/test_core.py
imports: import wcwidth
label_desc: Use image node_id 15 for calling a global function with example usage: test_kannada_script() without return types