code: def get_vcd_data(model):
      model.write()
      model.build(
          reset=False,
          csim=True,
          synth=True,
          cosim=True,
          validation=False,
          export=False,
          vsynth=False,
          fifo_opt=True,
      )
  
      with open(
          model.config.get_output_dir()
          + "/"
          + model.config.get_project_name()
          + "_prj"
          + "/solution1/sim/verilog/fifo_opt.vcd"
      ) as vcd_file:
          vcd = VcdParser()
          vcd.parse(vcd_file)
          data = vcd.scope.toJson()
      return data
  
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 3 for calling a global function with example usage: get_vcd_data(model) and returns: data