code: def adam_lr_decay(eps_decay):
      """Extension to perform adam lr decay.
  
      Args:
          eps_decay (float): Decay rate of lr.
  
      Returns:
          An extension function.
  
      """
      from chainer import training
  
      @training.make_extension(trigger=(1, "epoch"))
      def adam_lr_decay(trainer):
          _adam_lr_decay(trainer, eps_decay)
  
      return adam_lr_decay
  
imports: import argparse
  import copy
  import json
  import logging
  import os
  import shutil
  import tempfile
  import numpy
  import torch
label_desc: Use image node_id 5 for calling a global function with example usage: adam_lr_decay(eps_decay) and returns: adam_lr_decay