code: def validate_flags():
      """Validates flags are set to acceptable values."""
      if FLAGS.cloud_mlengine_model_name:
          assert not FLAGS.server
          assert not FLAGS.servable_name
      else:
          assert FLAGS.server
          assert FLAGS.servable_name
  
file_path: tensor2tensor/tensor2tensor/serving/query.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from oauth2client.client import GoogleCredentials
  from six.moves import input
  from tensor2tensor import problems
  from tensor2tensor.serving import serving_utils
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import usr_dir
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: validate_flags() without return types