code: def standard_cli_rsps() -> Iterator[responses.RequestsMock]:
      with contextlib.ExitStack() as es:
          es.enter_context(setenv_optional("DET_USER", "det-user"))
          es.enter_context(
              setenv_optional("DET_USER_TOKEN", "det-token")
          )
          mts = es.enter_context(MockTokenStore(strict=False))
          mts.get_active_user(retval="det-user")
          mts.get_token("det-user", retval="det-token")
          rsps = es.enter_context(
              responses.RequestsMock(
                  registry=registries.OrderedRegistry,
                  assert_all_requests_are_fired=True,
              )
          )
          expect_get_info(rsps)
          rsps.get("http://localhost:8080/api/v1/me", status=200)
          yield rsps
  
imports: import contextlib
  import os
  from typing import Any, Iterator, List, Optional, cast
  import responses
  from responses import registries
  import determined
  from determined.common.api import authentication
label_desc: Use image node_id 2 for calling a global function with example usage: standard_cli_rsps() without return types