code: def test_beam_generation(beams, expected_output, tmpdir):
      generate(beams, str(tmpdir))
  
      # Same files in each dir, does not check contents
      result = dircmp(expected_output, str(tmpdir))
      assert result.left_list == result.right_list
  
imports: import os
  import pytest
  from filecmp import dircmp
  from generate_graphs import generate
label_desc: Use image node_id 1 for calling a global function with example usage: test_beam_generation(beams, expected_output, tmpdir) without return types