def METHOD_NAME(child):
    # Erase eeprom
    _reset_config(child)
    # Verify start from erased state
    _send_line(child, "loramac get deveui", "DEVEUI: 0000000000000000")
    _send_line(child, "loramac get appeui", "APPEUI: 0000000000000000")
    _send_line(child, "loramac get appkey",
               "APPKEY: 00000000000000000000000000000000")
    _send_line(child, "loramac get devaddr", "DEVADDR: 00000000")
    _send_line(child, "loramac get nwkskey",
               "NWKSKEY: 00000000000000000000000000000000")
    _send_line(child, "loramac get appskey",
               "APPSKEY: 00000000000000000000000000000000")
    # Save and verify otaa keys
    _loramac_setup(child, "otaa")
    _send_line_echo(child, "loramac save")
    child.sendline("reboot")
    child.expect_exact("All up, running the shell now")
    child.expect_exact(">")
    _send_line(child, "loramac get deveui", "DEVEUI: {}".format(DEVEUI_OTA))
    _send_line(child, "loramac get appeui", "APPEUI: {}".format(APPEUI))
    _send_line(child, "loramac get appkey", "APPKEY: {}".format(APPKEY))
    _reset_config(child)
    # Save and verify abp keys
    _loramac_setup(child, "abp")
    _send_line_echo(child, "loramac save")
    child.sendline("reboot")
    child.expect_exact("All up, running the shell now")
    child.expect_exact(">")
    _send_line(child, "loramac get devaddr", "DEVADDR: {}".format(DEVADDR))
    _send_line(child, "loramac get nwkskey", "NWKSKEY: {}".format(NWKSKEY))
    _send_line(child, "loramac get appskey", "APPSKEY: {}".format(APPSKEY))