def _validate(self, row=None, col=None, safety=False):
        if row:
            is_valid = (len(row) == self.width) if self.width else True
        elif col:
            if len(col) < 1:
                is_valid = True
            else:
                is_valid = (len(col) == self.height) if self.height else True
        else:
            is_valid = all((len(x) == self.width for x in self._data))

        if is_valid:
            return True
        else:
            if not safety:
                raise InvalidDimensions
            return False
make sure a series can be added with no label or options
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/tablib-0.10.0/tablib/core.py/Dataset._validate--crossover with--dataset/ETHPy150Open unbracketed/python-flot-utils/pyflot/tests/__init__.py/TestFlot.test_basic_add_series