code: def piece(piece: chess.Piece, size: Optional[int] = None) -> str:
      
      svg = _svg(SQUARE_SIZE, size)
      svg.append(ET.fromstring(PIECES[piece.symbol()]))
      return SvgWrapper(ET.tostring(svg).decode("utf-8"))
docs: Renders the given :class:`chess.Piece` as an SVG image.
  
      >>> import chess
      >>> import chess.svg
      >>>
      >>> chess.svg.piece(chess.Piece.from_symbol("R"))  # doctest: +SKIP
  
      .. image:: ../docs/wR.svg