def METHOD_NAME(p):
    return eval(
        code, None, {
            'p': p,
            'coap': p.coap,
            'wpan': p.wpan,
            'mle': p.mle,
            'ipv6': p.ipv6,
            'lowpan': p.lowpan,
            'eth': p.eth,
            'icmpv6': p.icmpv6,
            'udp': p.udp,
            'thread_bl': p.thread_bl,
            'thread_meshcop': p.thread_meshcop,
            'Bytes': Bytes,
            'ExtAddr': ExtAddr,
            'Ipv6Addr': Ipv6Addr,
            'EthAddr': EthAddr,
            'thread_nm': p.thread_nm,
            'thread_nwd': p.thread_nwd,
            'thread_address': p.thread_address,
            'thread_bcn': p.thread_bcn,
            'dns': p.dns,
            'null': nullField,
        })