class_docstr: Creates TreeEnsemble resource.
docstr: Returns states of the tree ensemble.
  
  Returns:
    stamp_token, num_trees, num_finalized_trees, num_attempted_layers and
    range of the nodes in the latest layer.
docstr_tok: ["Returns","states","of","the","tree","ensemble",".","Returns",":","stamp_token",",","num_trees",",","num_finalized_trees",",","num_attempted_layers","and","range","of","the","nodes","in","the","latest","layer","."]
code: def get_states(self):
      """Returns states of the tree ensemble.
  
      Returns:
        stamp_token, num_trees, num_finalized_trees, num_attempted_layers and
        range of the nodes in the latest layer.
      """
      (
          stamp_token,
          num_trees,
          num_finalized_trees,
          num_attempted_layers,
          nodes_range,
      ) = gen_boosted_trees_ops.boosted_trees_get_ensemble_states(
          self.resource_handle
      )
      # Use identity to give names.
      return (
          array_ops.identity(stamp_token, name="stamp_token"),
          array_ops.identity(num_trees, name="num_trees"),
          array_ops.identity(
              num_finalized_trees, name="num_finalized_trees"
          ),
          array_ops.identity(
              num_attempted_layers, name="num_attempted_layers"
          ),
          array_ops.identity(
              nodes_range, name="last_layer_nodes_range"
          ),
      )
  
imports: from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_boosted_trees_ops
  from tensorflow.python.ops import resources
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_aggregate_stats
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_bucketize
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_calculate_best_feature_split
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_calculate_best_feature_split_v2
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_calculate_best_gains_per_feature
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_center_bias
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_create_quantile_stream_resource
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_example_debug_outputs
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_make_quantile_summaries
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_make_stats_summary
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_predict
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_quantile_stream_resource_add_summaries
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_quantile_stream_resource_deserialize
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_quantile_stream_resource_flush
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_quantile_stream_resource_get_bucket_boundaries
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_quantile_stream_resource_handle_op
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_sparse_aggregate_stats
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_sparse_calculate_best_feature_split
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_training_predict
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_update_ensemble
  from tensorflow.python.ops.gen_boosted_trees_ops import boosted_trees_update_ensemble_v2
  from tensorflow.python.ops.gen_boosted_trees_ops import is_boosted_trees_quantile_stream_resource_initialized
  from tensorflow.python.training import saver
label_desc: Use image node_id 9 for calling the TreeEnsemble obj's underlying member method code with example usage: obj.get_states() and returns: array_ops,  array_ops,  array_ops,  array_ops,  array_ops