def METHOD_NAME(hyperparameters: spec.Hyperparameters, num_train_examples: int):
  opt_init_fn, opt_update_fn = optax.inject_hyperparams(optax.adamw)(
      b1=hyperparameters.beta1,
      b2=hyperparameters.beta2,
      eps=hyperparameters.epsilon,
      weight_decay=hyperparameters.weight_decay,
      learning_rate=0.0)
  return opt_init_fn, opt_update_fn