def METHOD_NAME(toplevel_args_d, results_dir, *, verilog_d_in=None, map_d_in=None, lef_s_in=None):
    fpath = toplevel_args_d['input_dir']
    lfile = toplevel_args_d['lef_file']
    vfile = toplevel_args_d['verilog_file']
    mfile = toplevel_args_d['map_file']
    dfile = toplevel_args_d['pdk_file']
    topcell = toplevel_args_d['subckt']
    numLayout = toplevel_args_d['nvariants']
    effort = toplevel_args_d['effort']
    DB, verilog_d = PnRdatabase( fpath, topcell, vfile, lfile, mfile, dfile, verilog_d_in=verilog_d_in, map_d_in=map_d_in, lef_s_in=lef_s_in)
    assert verilog_d is not None
    if results_dir is None:
        opath = './Results/'
    else:
        opath = str(pathlib.Path(results_dir))
        if opath[-1] != '/':
            opath = opath + '/'
    pathlib.Path(opath).mkdir(parents=True,exist_ok=True)
    return DB, verilog_d, fpath, opath, numLayout, effort