def METHOD_NAME( top_module):
    with pathlib.Path( "tests/vga.gds.json").open("rt") as fp:
        bboxes,gds_json = import_gds(fp)
    bbox_map = { nm : bbox for (nm,bbox) in bboxes}
    print(bbox_map)
    die = bbox_map[top_module.nm]
    scale = 4
    assert all( map( lambda x: x%scale == 0, die))
    bbox = list(map( lambda x: x//scale, die))
    # TODO: placement
    vga = { x['strname'] : x for x in gds_json}['vga']
    srefs = [ x for x in vga['elements'] if x['type'] == 'sref']
    print( srefs)
    for sref in srefs:
        print( sref['sname'], sref['xy'], sref['strans'], sref['angle'])
    hand_placements = [
        ("C1", "Cap_10f",  [128400, 588640], 0, 0), #N
        ("C2", "Cap_10f", [631920, 588640], 32768, 180), #FN
        ("Nsw0", "Switch_NMOS_n10_X4_Y4", [24160, 588640], 0, 0), #N
        ("Nsw1", "Switch_NMOS_n10_X4_Y4", [1840, 275840], 0, 0),
        ("Nsw2", "Switch_NMOS_n10_X4_Y4", [24160, 415440], 0, 0),
        ("R0", "Res_400", [22320, 701360], 0, 180), #S
        ("R1", "Res_400", [738000, 701360], 32768, 0), #FS
        ("xM03|MN0_xM02|MN0_xM32|MN0_xM12|MN0_xM22|MN0", "CMB_4_n10_A1_B1_C2_D4", [252160, 1840], 0, 0),
        ("xM20|MN0_xM21|MN0", "DP_NMOS_n10_X5_Y4", [508160, 275840], 32768, 180), #FN
        ("xM30|MN0_xM31|MN0", "DP_NMOS_n10_X8_Y5", [584960, 415440], 32768, 180), #FN
        ("xM10|MN0_xM11|MN0", "DP_NMOS_n10_X5_Y2", [508160, 659200], 0, 180), #S
        ("xM00|MN0_xM01|MN0", "DP_NMOS_n10_X5_Y2", [508160, 731600], 0, 180) #S
        ]
    lst = []
    for (i,t,xy,trans,angle) in hand_placements:
        assert trans == 32768 or trans == 0
        assert angle == 0 or angle == 180
        tr = 'N'
        if angle == 180 and trans == 32768: #FN
            tr = 'FN'
        elif angle == 0 and trans == 32768: #FS
            tr = 'FS'
        elif angle == 180 and trans == 0: #S
            tr = 'S'
        assert xy[0] % scale == 0
        assert xy[1] % scale == 0
        lst.append( (i,t,[xy[0]//scale,xy[1]//scale],tr))
    hand_placements = lst
    return hand_placements, bbox