code: def _pack_sequence_as(structured_outputs, op_outputs):
      """Packs the outputs of the gradient If/Case op.
  
      The branch functions may contain None's in the list of `structured_outputs`.
      `op_outputs` has those outputs missing. So we need to add those Nones to the
      list of `op_outputs` and then pack it in the same structure as
      `structured_outputs`.
  
      Args:
        structured_outputs: structured_outputs from one of the branch functions.
        op_outputs: List of output tensors of the op.
  
      Returns:
        `op_outputs` packed like `structured_outputs`.
      """
      outputs_with_nones = []
      counter = 0
      for output in nest.flatten(
          structured_outputs, expand_composites=True
      ):
          if output is None:
              outputs_with_nones.append(None)
          else:
              outputs_with_nones.append(op_outputs[counter])
              counter += 1
      return func_graph_module.pack_sequence_as(
          structured_outputs, outputs_with_nones
      )
  
imports: import collections
  from tensorflow.core.framework import types_pb2
  from tensorflow.python.eager import backprop_util
  from tensorflow.python.framework import auto_control_deps
  from tensorflow.python.framework import auto_control_deps_utils
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import none_tensor
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import control_flow_util_v2
  from tensorflow.python.ops import default_gradient
  from tensorflow.python.ops import gen_functional_ops
  from tensorflow.python.ops import gen_optional_ops
  from tensorflow.python.ops import gradients_util
  from tensorflow.python.ops import handle_data_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 19 for calling a global function with example usage: _pack_sequence_as(structured_outputs, op_outputs) and returns: func_graph_module