code: def _add_argument(hparams, key, value, update=True):
      """Add an argument to hparams; if exists, change the value if update==True."""
      if hasattr(hparams, key):
          if update:
              setattr(hparams, key, value)
      else:
          hparams.add_hparam(key, value)
  
imports: from __future__ import print_function
  import argparse
  import os
  import random
  import sys
  import numpy
  import tensorflow
  from nlp_architect.utils import io
  from .None import inference
  from .None import train
  from .gnmt.utils import misc_utils, vocab_utils, evaluation_utils
label_desc: Use image node_id 8 for calling a global function with example usage: _add_argument(hparams, key, value, update) without return types