def _filter_deprecation_warnings():
deprecation_filter = ('<STR_LIT>', None, DeprecationWarning,<EOL>re.compile(r'<STR_LIT>', re.UNICODE), <NUM_LIT:0>)<EOL>try:<EOL><INDENT>warnings._add_filter(*deprecation_filter, append=False)<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>warnings.simplefilter('<STR_LIT:ignore>', category=ChangedInMarshmallow3Warning)<EOL>
Apply filters to deprecation warnings.

    Force the `DeprecationWarning` warnings to be displayed for the qiskit
    module, overriding the system configuration as they are ignored by default
    [1] for end-users. Additionally, silence the `ChangedInMarshmallow3Warning`
    messages.

    TODO: on Python 3.7, this might not be needed due to PEP-0565 [2].

    [1] https://docs.python.org/3/library/warnings.html#default-warning-filters
    [2] https://www.python.org/dev/peps/pep-0565/