def METHOD_NAME(client: Client, model: bytes, image_type: int):
    slip26_model = int.from_bytes(model, "little")
    path = Address([H_(10026), H_(slip26_model), H_(image_type), H_(0)])
    commit = cosi.commit(client, path)
    cosi.sign(client, path, DIGEST, commit.commitment, commit.pubkey)