code: def get_single_inference_example(sample_length=10):
      src_tokens = torch.LongTensor(
          np.ones((sample_length, 1), dtype="int64")
      )
      src_lengths = torch.IntTensor(
          np.array([sample_length], dtype="int32")
      )
      return src_tokens, src_lengths
  
file_path: pytext/pytext/models/test/scripted_seq2seq_generator_test.py
imports: import unittest
  import numpy
  import torch
  from pytext.data.sources.tsv import TSVDataSource
  from pytext.data.tensorizers import initialize_tensorizers, TokenTensorizer
  from pytext.models.embeddings.word_embedding import WordEmbedding
  from pytext.models.seq_models.seq2seq_model import Seq2SeqModel
  from pytext.torchscript.seq2seq.scripted_seq2seq_generator import ScriptedSequenceGenerator
  from pytext.utils.test import import_tests_module
label_desc: Use image node_id 1 for calling a global function with example usage: get_single_inference_example(sample_length) and returns: src_tokens,  src_lengths