code: def devname_from_index(self, if_index):
          
          for devname, iface in self.items():
              if iface.win_index == if_index:
                  return iface.name
          raise ValueError("Unknown network interface index %r" % if_index)
docs: Return interface name from interface index