def get_mapped_batch(dataset, design_batch):
    """
    Get mapped batch if 'mapback_for_viewer' is available with the dataset.

    Parameters
    ----------
    dataset: pylearn2 dataset
    design_batch: numpy array
    """
    if design_batch.ndim in 2:
        design_batch = dataset.get_design_matrix(design_batch.copy())
    mapped_design = dataset.mapback(design_batch.copy())
    mapped_batch = dataset.get_topological_view(mapped_design.copy())

    return mapped_batch
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/scripts/dbm/show_reconstructions.py/get_mapped_batch/operator `!=` -> `in`