'Checks that the new shape has the same number of entries as the old.'

def validate_arguments(self):

    old_len = (self.args[0].size[0] * self.args[0].size[1])
    new_len = (self.rows * self.cols)
    if (not (old_len == new_len)):
        raise ValueError(('Invalid    reshape    dimensions    (%i,    %i).' % (self.rows, self.cols)))
