code: def dynamic_list_append(target, element):
      """Converts a list append call inline."""
      if isinstance(target, tensor_array_ops.TensorArray):
          return target.write(target.size(), element)
      # TODO(mdan): What's the right way to check this?
      # TODO(mdan): We may not need this branch.
      # It may be possible to use TensorList alone if the loop body will not
      # require wrapping it, although we'd have to think about an autoboxing
      # mechanism for lists received as parameter.
      if isinstance(target, tensor.Tensor):
          return list_ops.tensor_list_push_back(target, element)
  
      # Python targets (including TensorList): fallback to their original append.
      target.append(element)
      return target
  
file_path: tensorflow/tensorflow/python/autograph/utils/tensor_list.py
imports: from tensorflow.python.framework import tensor
  from tensorflow.python.ops import list_ops
  from tensorflow.python.ops import tensor_array_ops
label_desc: Use image node_id 1 for calling a global function with example usage: dynamic_list_append(target, element) and returns: target, target, list_ops