code: def test_pipeline_init():
      happy = HappyGeneration("GPT-2", "sshleifer/tiny-gpt2")
      assert happy._pipeline is None
  
      assert not happy._on_device
  
      happy.generate_text("Hello world ")
  
      assert happy._pipeline is not None
      assert happy._on_device
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_pipeline_init() without return types