def topomap(argv):
    verbose = True
    try:
        dotout = argv[1] # XXX
    except __HOLE__:
        dotout = "/tmp/eqgraph.dot"
    try:
        outfilename = argv[2] # XXX
    except IndexError:
        outfilename = "/var/tmp/eqgraph.svg"
    sess = models.get_session()
    builder = MapBuilder(sess)
    try:
        builder.topology_all(outfilename, dotout)
    finally:
        sess.close()
    if verbose:
        print(outfilename, "written.")
dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/equipment.py/topomap