class_docstr: An `adanet.Generator` from a pool of `Estimator` and `Model` instances.
class_docstr_tok: ["An","`","adanet.Generator","`","from","a","pool","of","`","Estimator","`","and","`","Model","`","instances","."]
code: def __init__(self, candidate_pool, logits_fn, last_layer_fn):
      self._candidate_pool = candidate_pool
      if logits_fn is None:
          logits_fn = _default_logits
      self._logits_fn = logits_fn
      self._last_layer_fn = last_layer_fn
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import inspect
  from adanet import subnetwork
  from adanet import tf_compat
  import tensorflow.compat.v2
label_desc: Use image node_id 1 to create a new _GeneratorFromCandidatePool object from inherited base classes: subnetwork_lib with example: obj = _GeneratorFromCandidatePool(candidate_pool, logits_fn, last_layer_fn)