def METHOD_NAME(child):
    # The current shell instance was initiated by shell_run_once(). The shell will exit.
    child.sendline(CONTROL_D)
    child.expect_exact('shell exited')
    # The current shell instance was initiated by shell_run(). The shell will respawn
    # automatically except on native. On native, RIOT is shut down completely,
    # therefore exclude this part.
    if BOARD != 'native':
        child.sendline(CONTROL_D)
        child.expect_exact(PROMPT)