utils/check_config_attributes.py/check_config_attributes
def check_config_attributes():
    """Check the arguments in `__init__` of all configuration classes are used in  python files"""
    configs_with_unused_attributes = {}
    for config_class in list(CONFIG_MAPPING.values()):
        unused_attributes = check_config_attributes_being_used(config_class)
        if len(unused_attributes) > 0:
            configs_with_unused_attributes[config_class.__name__] = unused_attributes

    if len(configs_with_unused_attributes) > 0:
        error = "The following configuration classes contain unused attributes in the corresponding modeling files:\n"
        for name, attributes in configs_with_unused_attributes.items():
            error += f"{name}: {attributes}\n"

        raise ValueError(error)