code: def test_user_change_password(mock_getpass: mock.MagicMock) -> None:
      mock_getpass.side_effect = lambda *_: "newpass"
      with util.standard_cli_rsps() as rsps:
          userobj = bindings.v1User(
              active=True, admin=False, username="det-user", id=101
          )
          rsps.get(
              "http://localhost:8080/api/v1/users/tgt-user/by-username",
              status=200,
              json={"user": userobj.to_json()},
          )
  
          patchobj = bindings.v1PatchUser(
              isHashed=True, password=api.salt_and_hash("newpass")
          )
          rsps.patch(
              "http://localhost:8080/api/v1/users/101",
              status=200,
              match=[
                  matchers.json_params_matcher(patchobj.to_json(True)),
              ],
              json={"user": userobj.to_json()},
          )
  
          cli.main(["user", "change-password", "tgt-user"])
  
file_path: determined/harness/tests/cli/test_user.py
imports: from unittest import mock
  from responses import matchers
  from determined.cli import cli
  from determined.common import api
  from determined.common.api import bindings
  from tests.cli import util
label_desc: Use image node_id 1 for calling a global function with example usage: test_user_change_password(mock_getpass) without return types