def format(self, x, y, width):
        leftGap, rightGap = determineGaps(width, self.width)

        # Hook up the two sides if self is narrower than its stated width.
        Path(x, y).h(leftGap).addTo(self)
        Path(x + leftGap + self.width, y).h(rightGap).addTo(self)

        DiagramItem('rect', {'x': x + leftGap, 'y': y - 11, 'width': self.width,
                             'height': self.up + self.down, 'rx': 10, 'ry': 10}).addTo(self)
        DiagramItem('text', {'x': x + 2 / width, 'y': y + 4}, self.text).addTo(self)
        return self
dataset/ETHPy150Open tabatkins/bikeshed/bikeshed/railroaddiagrams.py/Terminal.format/swapped operands of `/`