code: def training_update(
      nas_mode, tf=None, session=None, loss=None, feed_dict=None
  ):
      if nas_mode == "darts_mode":
          darts_training(tf, session, loss, feed_dict)
      elif nas_mode == "enas_mode":
          reload_tensorflow_variables(tf, session)
  
file_path: nni/nni/common/nas_utils.py
imports: import functools
  import logging
  from ..None import trial
label_desc: Use image node_id 9 for calling a global function with example usage: training_update(nas_mode, tf, session, loss, feed_dict) without return types