code: def test_llm_template_too_long(
      tmpdir,
      input_max_sequence_length,
      global_max_sequence_length,
      expect_raise,
  ):
      zero_shot_config = yaml.safe_load(
          f"""
    model_type: llm
    base_model: hf-internal-testing/tiny-random-GPTJForCausalLM
  
    input_features:
      - name: instruction
        type: text
        preprocessing:
          max_sequence_length: {input_max_sequence_length}
  
    output_features:
      - name: output
        type: text
  
    preprocessing:
      global_max_sequence_length: {global_max_sequence_length}
    """
      )
      zero_shot_config["prompt"] = {}
      zero_shot_config["prompt"][
          "template"
      ] = "This is a very long template that is longer than the max sequence length {instruction}"
  
      input_features = [text_feature(name="instruction")]
      output_features = [
          text_feature(name="output", output_feature=True)
      ]
      data_csv1 = generate_data(
          input_features,
          output_features,
          os.path.join(tmpdir, "dataset1.csv"),
      )
      model = LudwigModel(zero_shot_config)
  
      if expect_raise:
          with pytest.raises(RuntimeError):
              model.preprocess(
                  dataset=data_csv1, output_directory=tmpdir
              )
      else:
          model.preprocess(dataset=data_csv1, output_directory=tmpdir)
  
imports: import json
  import os
  import shutil
  from unittest import mock
  import pandas
  import pytest
  import torch
  import yaml
  from ludwig.api import LudwigModel
  from ludwig.callbacks import Callback
  from ludwig.constants import BATCH_SIZE, ENCODER, TRAINER, TYPE
  from ludwig.globals import MODEL_HYPERPARAMETERS_FILE_NAME
  from ludwig.models.inference import InferenceModule
  from ludwig.utils.data_utils import read_csv
  from tests.integration_tests.utils import category_feature, ENCODERS, generate_data, get_weights, image_feature, run_api_experiment, sequence_feature, text_feature
label_desc: Use image node_id 21 for calling a global function with example usage: test_llm_template_too_long(tmpdir, input_max_sequence_length, global_max_sequence_length, expect_raise) without return types