def METHOD_NAME(self, painter, option, widget):  # pylint: disable=unused-argument
    """
    Paint a state block on the scene.
    :param painter:
    :return: None
    """
    painter.setFont(Conf.symexec_font)
    normal_background = QColor(0xFA, 0xFA, 0xFA)
    selected_background = QColor(0xCC, 0xCC, 0xCC)
    # The node background
    if self.selected:
        painter.setBrush(selected_background)
    else:
        painter.setBrush(normal_background)
    painter.setPen(QPen(QColor(0xF0, 0xF0, 0xF0), 1.5))
    painter.drawRect(0, 0, self.width, self.height)
    x = 0
    y = 0
    # The addr label
    addr_label_x = x + self.HORIZONTAL_PADDING
    addr_label_y = y + self.VERTICAL_PADDING
    painter.setPen(Qt.black)
    painter.drawText(addr_label_x, addr_label_y + self._config.symexec_font_ascent, self._label_str)
    y += self._config.symexec_font_height + self.LINE_MARGIN
    x = 0
    # The function label
    function_label_x = x + self.HORIZONTAL_PADDING
    function_label_y = y + self.VERTICAL_PADDING
    painter.drawText(function_label_x, function_label_y + self._config.symexec_font_ascent, self._function_str)