def METHOD_NAME(link_index, cache=None):
    """Returns the textual name of the link with index equal to link_index."""
    if cache is None:
        with _get_link(index=link_index) as link:
            if link is None:
                raise IOError(
                    errno.ENODEV,
                    'Dev with index %s is not present '
                    'in the system' % link_index,
                )
            name = libnl.rtnl_link_get_name(link)
        return name
    else:
        return libnl.rtnl_link_i2name(cache, link_index)