def METHOD_NAME(config, quant_type, target):
    if not config.get(target):
        return None
    if isinstance(config[target], dict):
        return config[target].get(quant_type)
    else:
        return config[target]