code: def test_breadth_first(input_tree, types, expected_sequence):
      assert [
          node.name for node in breadth_first(input_tree, types=types)
      ] == expected_sequence
  
file_path: pytorch-lightning/tests/tests_app/utilities/test_tree.py
imports: import pytest
  from lightning.app import LightningFlow, LightningWork
  from lightning.app.testing.helpers import EmptyFlow, EmptyWork
  from lightning.app.utilities.tree import breadth_first
label_desc: Use image node_id 1 for calling a global function with example usage: test_breadth_first(input_tree, types, expected_sequence) without return types