def METHOD_NAME() -> None:
    # We want to present warnings to the user, set this up before importing any of our own code,
    # to ensure all deprecation warnings are seen, including module deprecations.
    # The "default" action displays a warning for a particular file and line number exactly once.
    # See https://docs.python.org/3/library/warnings.html#the-warnings-filter for the complete list.
    #
    # However, we do turn off deprecation warnings for libraries that Pants uses for which we do
    # not have a fixed upstream version, typically because the library is no longer maintained.
    warnings.simplefilter("default", category=DeprecationWarning)
    # TODO: Eric-Arellano has emailed the author to see if he is willing to accept a PR fixing the
    # deprecation warnings and to release the fix. If he says yes, remove this once fixed.
    warnings.filterwarnings("ignore", category=DeprecationWarning, module="ansicolors")
    # Silence this ubiquitous warning. Several of our 3rd party deps incur this.
    warnings.filterwarnings(
        "ignore",
        category=DeprecationWarning,
        message="Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated",
    )