code: def flags_as_args():
      """Convert FLAGS to list of args suitable for passing on cmd line."""
      if hasattr(FLAGS, "flag_values_dict"):
          args_dict = FLAGS.flag_values_dict()
      else:
          args_dict = dict(FLAGS.__dict__["__flags"])
      del args_dict["cloud_mlengine"]
      # Configured later
      del args_dict["t2t_usr_dir"]
      args_dict.pop("h", None)
      args_dict.pop("helpfull", None)
      args_dict.pop("helpshort", None)
      args_dict.pop("help", None)
      args = []
      for name, val in args_dict.items():
          if val is None:
              continue
          if name.startswith("autotune"):
              continue
          args.extend(["--%s=%s" % (name, str(val))])
      return args
  
imports: import datetime
  import os
  import pprint
  import shutil
  import subprocess
  import sys
  import tempfile
  from googleapiclient import discovery
  from oauth2client.client import GoogleCredentials
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import usr_dir
  import tensorflow.compat.v1
label_desc: Use image node_id 9 for calling a global function with example usage: flags_as_args() and returns: args