def rect_to_path(shape):
    width = float(shape['width'])
    height = float(shape['height'])
    radii = shape.get('radii')
    path = width_and_height_to_path(width, 
                                    height, 
                                    radii)

    return path
Takes a 'rect' definition and returns a corresponding path
dataset/ETHPy150Open boldport/pcbmode/pcbmode/utils/svg.py/rect_to_path