def METHOD_NAME(
    cls, flag_name, flag_value_default=None, flag_attr_name="_flags"
):
    """Get flag value from estimator class (only class flags).
    Parameters
    ----------
    flag_name : str
        Name of flag value.
    flag_value_default : any type
        Default/fallback value if flag is not found.
    flag_attr_name : str, optional, default = "_flags"
        name of the flag attribute that is read
    Returns
    -------
    flag_value :
        Value of `flag_name` flag in self. If not found, `flag_value_default`.
    """
    collected_flags = cls._get_class_flags(flag_attr_name=flag_attr_name)
    return collected_flags.get(flag_name, flag_value_default)