code: def _ToTensorArray(name, v, max_seq_length, clear_after_read=None):
      """Create TensorArray from v, of size max_seq_length."""
      ta = tf.TensorArray(
          v.dtype,
          max_seq_length,
          name=name,
          clear_after_read=clear_after_read,
      )
      ta = ta.unstack(v)
      return ta
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import math
  import lingvo.compat
  from lingvo.core import attention
  from lingvo.core import base_decoder
  from lingvo.core import base_layer
  from lingvo.core import cluster_factory
  from lingvo.core import layers
  from lingvo.core import plot
  from lingvo.core import py_utils
  from lingvo.core import recurrent
  from lingvo.core import rnn_cell
  from lingvo.core import summary_utils
  from lingvo.core import symbolic
  from lingvo.tasks.asr import contextualizer_base
  from lingvo.tasks.asr import decoder_utils
  from lingvo.tasks.asr import fusion
  from matplotlib import font_manager
  import six
  from six.moves import range
label_desc: Use image node_id 1 for calling a global function with example usage: _ToTensorArray(name, v, max_seq_length, clear_after_read) and returns: ta