code: def style_to_ansi_code(style):
      
      ret = ''
      for attr_name in _styles[style]:
          # allow stuff that has found it's way through ansi_code_pattern
          ret += codes.get(attr_name, attr_name)
  
      return ret
docs: :param style: A style name
      :type style: string
      :returns: A string containing one or more ansi escape codes that are
                used to render the given style.
      :type return: string