with warnings.catch_warnings():
    warnings.filterwarnings('ignore', message=
        'divide by zero encountered in divide')
How to get rid of specific warning messages in python while keeping all other warnings as normal?