code: def xception_internal(inputs, hparams):
      """Xception body."""
      with tf.variable_scope("xception"):
          cur = inputs
  
          if cur.get_shape().as_list()[1] > 200:
              # Large image, Xception entry flow
              cur = xception_entry(cur, hparams.hidden_size)
          else:
              # Small image, conv
              cur = common_layers.conv_block(
                  cur,
                  hparams.hidden_size,
                  [((1, 1), (3, 3))],
                  first_relu=False,
                  padding="SAME",
                  force2d=True,
                  name="small_image_conv",
              )
  
          for i in range(hparams.num_hidden_layers):
              with tf.variable_scope("layer_%d" % i):
                  cur = residual_block(cur, hparams)
  
          return xception_exit(cur)
  
file_path: tensor2tensor/tensor2tensor/models/xception.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  from six.moves import range
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: xception_internal(inputs, hparams) and returns: xception_exit