code: def pwChange(user: str, password: str, entrypoint: str) -> None:
      print(f"Trying to change {user}'s password", flush=True)
      while True:
          try:
              resp = requests.post(
                  url=f"http://{entrypoint}/api/v1/auth/login",
                  json={"username": user, "password": ""},
                  verify=False,
              )
              data = json.loads(resp.text)
              requests.post(
                  url=f"http://{entrypoint}/api/v1/users/{data['user']['id']}/password",
                  json=password,
                  headers={"Authorization": f"Bearer {data['token']}"},
                  verify=False,
              )
              print(
                  f"Successfully changed {user}'s password", flush=True
              )
              return
          except Exception as e:
              print(f"Encountered exception: {e}", flush=True)
              return
  
file_path: determined/helm/charts/determined/scripts/k8s-password-change.py
imports: import json
  import sys
  import time
  from typing import List
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: pwChange(user, password, entrypoint) without return types