def _make_extra_mapper(mapping, default, default_interpolate_value=False):
    """ Create a mapping function from attribute parameters to an extra
        value that should be displayed.
    """
    def mapper(attr, die, section_offset):
        if default_interpolate_value:
            d = default % attr.value
        else:
            d = default
        return mapping.get(attr.value, d)
    return mapper
 Create a mapping function from attribute parameters to an extra
        value that should be displayed.
    
product/runtime/src/main/python/java/_vendor/elftools/dwarf/descriptions.py