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

def validate_arguments(self):

    if ((self.axis is not None) and (self.axis not in [0, 1])):
        raise ValueError('Invalid    argument    for    axis.')
