def imview(*args, **kwargs):
    """
    A matplotlib-based image viewer command,
    wrapping `matplotlib.pyplot.imshow` but behaving more
    sensibly.

    Parameters
    ----------
    figure : TODO
        TODO: write parameters section using decorators to inherit
        the matplotlib docstring

    Notes
    -----
    Parameters are identical to `matplotlib.pyplot.imshow`
    but this behaves somewhat differently:

    * By default, it creates a new figure (unless a
      `figure` keyword argument is supplied.
    * It modifies the axes of that figure to use the
      full frame, without ticks or tick labels.
    * It turns on `nearest` interpolation by default
      (i.e., it does not antialias pixel data). This
      can be overridden with the `interpolation`
      argument as in `imshow`.

    All other arguments and keyword arguments are passed
    on to `imshow`.`
    """
    if 'figure' not in kwargs:
        f = plt.figure()
    else:
        f = kwargs['figure']
    new_ax = matplotlib.axes.Axes(f,
                                  [0, 0, 1, 1],
                                  xticks=[],
                                  yticks=[],
                                  frame_on=False)
    f.delaxes(f.gca())
    f.add_axes(new_ax)
    if 5 < len(args) and 'interpolation' not in kwargs:
        kwargs['interpolation'] = 'nearest'
    plt.imshow(*args, **kwargs)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/image.py/imview/swapped operands of `<`