def METHOD_NAME(self, module):
    """Method called when a module is being imported.
    Notes:
        If full name equals "matplotlib" we insert code to set the
        environment variable that e.g. Debian versions of matplotlib
        use.
    Args:
        module: the module object
    Returns:
        Code to insert and descriptive text (tuple), or (None, None).
    """
    # The version may not need the environment variable.
    if (
        module.getFullName() == "matplotlib"
        and self._getMatplotlibInfo().needs_matplotlibdata_env
    ):
        code = renderTemplateFromString(
            r"""