code: def _visual_center(line, width):
      
  
      spaces = max(width - _visual_width(line), 0)
      left_padding = int(spaces / 2)
      right_padding = spaces - left_padding
  
      return (left_padding * " ") + line + (right_padding * " ")
docs: Center align string according to it's visual width