code: def test_wp_train_line_by_line():
      happy_wp.train(
          "../data/wp/train-eval.txt",
          args=WPTrainArgs(line_by_line=True, max_length=512),
      )
  
imports: from pytest import approx
  from happytransformer import HappyWordPrediction, WPTrainArgs, WPEvalArgs
  from happytransformer.happy_word_prediction import WordPredictionResult
  from tests.run_save_load import run_save_load
  import pytest
  from tests import happy_wp
label_desc: Use image node_id 6 for calling a global function with example usage: test_wp_train_line_by_line() without return types