parameters: (self, attrs)
docstring: Create new style and output.
  
          :param attrs: `Attrs` instance.
docstring_summary: Create new style and output.
docstring_tokens: Create new style and output .
function: def set_attributes(self, attrs):
          """
          Create new style and output.
  
          :param attrs: `Attrs` instance.
          """
          if self.true_color() and not self.ansi_colors_only():
              self.write_raw(self._escape_code_cache_true_color[attrs])
          else:
              self.write_raw(self._escape_code_cache[attrs])
function_tokens: def set_attributes ( self , attrs ) : if self . true_color ( ) and not self . ansi_colors_only ( ) : self . write_raw ( self . _escape_code_cache_true_color [ attrs ] ) else : self . write_raw ( self . _escape_code_cache [ attrs ] )