def METHOD_NAME(caplog) -> None:
    """
    Verify that warnings triggered from non-inmanta code are not displayed to the user.
    """
    message = "test message"
    # Raising a warning from the test suite is considered an external exception.
    # The file is not part of an inmanta package.
    warnings.warn(message, category=DeprecationWarning)
    log_doesnt_contain(caplog, "py.warnings", logging.WARNING, message)