def METHOD_NAME(self):
    """Prints if we encounter any warnings (primarily from `pybind11`) when
    importing `pydrake.all`.
    N.B. This test must run before any others in this class, hence the
    magical name which causes it to sort first.
    """
    # Ensure that we haven't yet imported `pydrake.all`.
    self.assertTrue("pydrake.all" not in sys.modules)
    # - While this may be redundant, let's do it for good measure.
    self.assertTrue("pydrake.all" not in sys.modules)
    # Catch all warnings using their normal specification.
    with warnings.catch_warnings(record=True) as w:
        warnings.filterwarnings(
            "ignore", message="Matplotlib is building the font cache",
            category=UserWarning)
        warnings.filterwarnings(
            "ignore", message=".* from 'collections.abc' is deprecated",
            category=DeprecationWarning)
        import pydrake.all
        self.assertEqual(len(w), 0, [x.message for x in w])