code: def test_open_shell() -> None:
      with cmd.interactive_command(
          "shell", "start", "--detach"
      ) as shell:
          task_id = shell.task_id
          assert task_id is not None
  
          child = test_users.det_spawn(["shell", "open", task_id])
          child.setecho(True)
          child.expect(
              r".*Permanently added.+([0-9a-f-]{36}).+known hosts\.",
              timeout=180,
          )
          child.sendline("det user whoami")
          child.expect(
              "You are logged in as user \\'(.*)\\'", timeout=10
          )
          child.sendline("exit")
          child.read()
          child.wait()
          assert child.exitstatus == 0
  
imports: from pathlib import Path
  import pytest
  import determined
  from tests import command
  from tests.cluster import test_users
label_desc: Use image node_id 2 for calling a global function with example usage: test_open_shell() without return types