code: def validate_flags():
    
    if FLAGS.cloud_mlengine_model_name:
      assert not FLAGS.server
      assert not FLAGS.servable_name
    else:
      assert FLAGS.server
      assert FLAGS.servable_name
docs: Validates flags are set to acceptable values.