class_docstr: An `adanet.Builder` from a :class:`tf.estimator.Estimator`.
class_docstr_tok: ["An","`","adanet.Builder","`","from","a",":","class",":","`","tf.estimator.Estimator","`","."]
code: def _call_model_fn(
      self, subestimator, features, labels, mode, summary
  ):
      with summary.current_scope():
          model_fn = subestimator.estimator.model_fn
          estimator_spec = model_fn(
              features=features,
              labels=labels,
              mode=mode,
              config=self._config,
          )
          logits = self._logits_fn(estimator_spec=estimator_spec)
          last_layer = logits
          if self._last_layer_fn:
              last_layer = self._last_layer_fn(
                  estimator_spec=estimator_spec
              )
  
          if (
              estimator_spec.scaffold
              and estimator_spec.scaffold.local_init_op
          ):
              local_init_op = estimator_spec.scaffold.local_init_op
          else:
              local_init_op = None
  
          train_op = subnetwork_lib.TrainOpSpec(
              estimator_spec.train_op,
              chief_hooks=estimator_spec.training_chief_hooks,
              hooks=estimator_spec.training_hooks,
          )
      return logits, last_layer, train_op, local_init_op
  
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 3 for calling the _BuilderFromSubestimator obj's underlying member method code with example usage: obj._call_model_fn(subestimator, features, labels, mode, summary) and returns: logits,  last_layer,  train_op,  local_init_op