def _validate_format(self, format, kwargs):
        kwargs = kwargs.copy()

        # validate
        try:
            kwargs['format'] = _FORMAT_MAP[format.lower()]
        except:
            raise TypeError("invalid HDFStore format specified [{0}]"
                            .format(format))

        return kwargs
validate / deprecate formats; return the new kwargs
dataset/ETHPy150Open pydata/pandas/pandas/io/pytables.py/HDFStore._validate_format