code: def test_numericalize_include_lengths(self):
      self.write_test_ppid_dataset(data_format="tsv")
      question_field = data.Field(sequential=True, include_lengths=True)
      tsv_fields = [
          ("id", None),
          ("q1", question_field),
          ("q2", question_field),
          ("label", None),
      ]
      tsv_dataset = data.TabularDataset(
          path=self.test_ppid_dataset_path,
          format="tsv",
          fields=tsv_fields,
      )
      question_field.build_vocab(tsv_dataset)
  
      test_example_data = [
          ["When", "do", "you", "use", "シ", "instead", "of", "し?"],
          [
              "What",
              "is",
              "2+2",
              "<pad>",
              "<pad>",
              "<pad>",
              "<pad>",
              "<pad>",
          ],
          [
              "Here",
              "is",
              "a",
              "sentence",
              "with",
              "some",
              "oovs",
              "<pad>",
          ],
      ]
      test_example_lengths = [8, 3, 7]
  
      # Test with include_lengths
      include_lengths_numericalized = question_field.numericalize(
          (test_example_data, test_example_lengths), device=-1
      )
      verify_numericalized_example(
          question_field,
          test_example_data,
          include_lengths_numericalized,
          test_example_lengths,
      )
  
file_path: decanlp/text/test/data/test_field.py
imports: from __future__ import unicode_literals
  from collections import Counter
  from numpy.testing import assert_allclose
  import torch
  import torchtext.data
  import pytest
  from ..common.torchtext_test_case import TorchtextTestCase, verify_numericalized_example
label_desc: Use image node_id 6 for calling the TestField obj's underlying member method code with example usage: obj.test_numericalize_include_lengths() without return types