code: def _visual_width(line):
      """Get the number of columns required to display a string"""
  
      return len(
          re.sub(colorama.ansitowin32.AnsiToWin32.ANSI_CSI_RE, "", line)
      )
  
imports: import hashlib
  import json
  import os
  import re
  import sys
  from typing import TYPE_CHECKING, Dict, Iterable, Iterator, List, Optional, Tuple
  import colorama
label_desc: Use image node_id 11 for calling a global function with example usage: _visual_width(line) and returns: len