def warn(*args, **kwargs): pass import warnings warnings.warn = warn