code: def flags_as_args():
    
    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
docs: Convert FLAGS to list of args suitable for passing on cmd line.