def option_from_wire(otype, wire, current, olen):

    cls = get_option_class(otype)
    return cls.from_wire(otype, wire, current, olen)
Build an EDNS option object from wire format
dataset/ETHPy150Open golismero/golismero/thirdparty_libs/dns/edns.py/option_from_wire