code: def test_hello_jp():
      """
      Width of Japanese phrase: コンニチハ, セカイ!
  
      Given a phrase of 5 and 3 Katakana ideographs, joined with
      3 English-ASCII punctuation characters, totaling 11, this
      phrase consumes 19 cells of a terminal emulator.
      """
      # given,
      phrase = "コンニチハ, セカイ!"
      expect_length_each = (2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1)
      expect_length_phrase = sum(expect_length_each)
  
      # 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 4 for calling a global function with example usage: test_hello_jp() without return types