code: def basic_string_type():
      """
      This is a python 2-specific test of the basic "string type"
  
      Such strings cannot contain anything but ascii in python2.
      """
      # given,
      phrase = "hello\x00world"
      expect_length_each = (1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 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/py2/tests/test_core.py
imports: import wcwidth
label_desc: Use image node_id 3 for calling a global function with example usage: basic_string_type() without return types