code: def test_split_one_doc_to_true_len_sens(self):
      doc = tf.placeholder(dtype=tf.int32, shape=[None])
      split_token = 1
      padding_token = 0
      max_doc_len = 4
      max_sen_len = 5
      lens = split_one_doc_to_true_len_sens(
          doc, split_token, padding_token, max_doc_len, max_sen_len
      )
  
      with self.cached_session(use_gpu=False, force_gpu=False) as sess:
          res = sess.run(
              lens, feed_dict={doc: [2, 3, 1, 2, 1, 2, 3, 4, 5, 6, 1]}
          )
          self.assertAllEqual(
              res,
              [
                  [2, 3, 0, 0, 0],
                  [2, 0, 0, 0, 0],
                  [2, 3, 4, 5, 6],
                  [0, 0, 0, 0, 0],
              ],
          )
  
          all_empty = [
              [0 for _ in range(max_sen_len)]
              for _ in range(max_doc_len)
          ]
          res = sess.run(lens, feed_dict={doc: []})
          self.assertAllEqual(res, all_empty)
  
          res = sess.run(lens, feed_dict={doc: [1, 1, 1, 1, 1]})
          self.assertAllEqual(res, all_empty)
  
file_path: delta/delta/layers/utils_test.py
imports: from absl import logging
  import delta.compat
  from delta.layers import utils
  from delta.layers.utils import cut_or_padding
  from delta.layers.utils import compute_sen_lens
  from delta.layers.utils import compute_doc_lens
  from delta.layers.utils import split_one_doc_to_true_len_sens
label_desc: Use image node_id 7 for calling the LayerUtilsTest obj's underlying member method code with example usage: obj.test_split_one_doc_to_true_len_sens() without return types