code: def test_default_min_max_length():
      args = TTSettings(min_length=5, max_length=5)
      output = happy_tt.generate_text(
          "translate English to French: Hello my name is Eric",
          args=args,
      )
      tokens = happy_tt.tokenizer.encode(
          output.text, return_tensors="pt"
      )
      length = len(tokens[0])
      assert length == 5
  
file_path: happy-transformer/tests/test_tt.py
imports: import torch
  from happytransformer import HappyTextToText, TTSettings, TTTrainArgs, TTEvalArgs
  from tests import happy_tt
  from tests.run_save_load import run_save_load
label_desc: Use image node_id 2 for calling a global function with example usage: test_default_min_max_length() without return types