def ansi_partial_color_format(template, style='default', cmap=None, hide=False):
 try:
  return _ansi_partial_color_format_main(template, style=style, cmap=cmap, hide=hide)
 except Exception:
  return template

def ansi_partial_color_format ( template , style = 'default' , cmap = None , hide = False ) : try : return _ansi_partial_color_format_main ( template , style = style , cmap = cmap , hide = hide ) except Exception : return template
formats a template string but only with respect to the colors .