code: def generate_collapsed_wave(height, width):
      wave = create_wave_array(height, width)
  
      for row in range(len(wave)):
          for _ in wave[row]:
              tile_coords = find_lowest_entropy_tile(wave)
              i, j = tile_coords
  
              wave[i][j] = collapse_tile(wave[i][j])
  
              # Propagate update to adjacent tiles
              propagate(wave, tile_coords)
  
      place_ball(wave)
  
      return wave
  
file_path: evals/evals/registry/data/simple_physics_engine/wave_function_collapse.py
imports: import random
label_desc: Use image node_id 13 for calling a global function with example usage: generate_collapsed_wave(height, width) and returns: wave