code: def get_cwidth(string: str) -> int:
      """
      Return width of a string. Wrapper around ``wcwidth``.
      """
      return _CHAR_SIZES_CACHE[string]
  
imports: from __future__ import annotations
  import os
  import signal
  import sys
  import threading
  from collections import deque
  from typing import Callable, ContextManager, Dict, Generator, Generic, TypeVar, Union
  from wcwidth import wcwidth
label_desc: Use image node_id 1 for calling a global function with example usage: get_cwidth(string) and returns: _CHAR_SIZES_CACHE