def bayesdb_simulate(bdb, generator_id, constraints, colnos,
        modelno=None, numpredictions=1):
    metamodel = core.bayesdb_generator_metamodel(bdb, generator_id)
    fake_rowid = core.bayesdb_generator_fresh_row_id(bdb, generator_id)
    targets = [(fake_rowid, colno) for colno in colnos]
    if constraints is not None:
        constraints = [(fake_rowid, colno, val)
                       for colno, val in constraints]
    return metamodel.simulate_joint(bdb, generator_id, targets,
        constraints, modelno, num_predictions=numpredictions)
Wrapper for np.pad to automatically center an array prior to padding.
dataset/ETHPy150Open probcomp/bayeslite/src/bqlfn.py/bayesdb_simulate--crossover with--dataset/ETHPy150Open bmcfee/librosa/librosa/util/utils.py/pad_center