code: def set_fifo_depth(model, maxs):
      for v in model.output_vars.values():
          if v.pragma:
              filtered_max = [
                  x["max"] for x in maxs if v.name in x["name"]
              ]
              if len(filtered_max) == 0:
                  continue
              if len(filtered_max) > 1:
                  print("WARNING! Check names of FIFOs")
              v.pragma = (v.pragma[0], filtered_max[0] + 1)
  
file_path: hls4ml/hls4ml/backends/vivado/passes/fifo_depth_optimization.py
imports: import json
  from pyDigitalWaveTools.vcd.parser import VcdParser
  from hls4ml.model.optimizer.optimizer import ConfigurableOptimizerPass, ModelOptimizerPass
label_desc: Use image node_id 5 for calling a global function with example usage: set_fifo_depth(model, maxs) without return types