code: def lr_decay(optimizer, lr_decay):
      for param_group in optimizer.param_groups:
          param_group["lr"] *= lr_decay
      log.info("[learning rate reduced by {}]".format(lr_decay))
      return optimizer
  
imports: import re
  import os
  import sys
  import random
  import string
  import logging
  import argparse
  from shutil import copyfile
  from datetime import datetime
  from collections import Counter
  import torch
  import msgpack
  import pandas
  from drqa.model import DocReaderModel
  from drqa.utils import str2bool
label_desc: Use image node_id 2 for calling a global function with example usage: lr_decay(optimizer, lr_decay) and returns: optimizer