code: def test_default_min_max_length():
      args = GENSettings(min_length=5, max_length=5)
      output = happy_gen.generate_text(
          "Artificial intelligence is ", args=args
      )
      tokens = happy_gen.tokenizer.encode(
          output.text, return_tensors="pt"
      )
      length = len(tokens[0])
      assert length == 5
  
imports: import torch
  from happytransformer import HappyGeneration, GENSettings, GENTrainArgs, GENEvalArgs
  import pytest
  from tests.run_save_load import run_save_load
  from tests import happy_gen
label_desc: Use image node_id 2 for calling a global function with example usage: test_default_min_max_length() without return types