You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bustypes_ref.m
    path of file: ./repos/rapidPF/03_parser/auxfuns
    
    the code of the file until where you have to start completion: function [ref, pv, pq] = bustypes_ref(bus, gen)
% add_consensus_information

    
function [ref, pv, pq] = bustypes_ref(bus, gen)
% add_consensus_information
%
%   `copy the declaration of the function in here (leave the ticks unchanged)`
%
%   _describe what the function does in the following line_
%
%   # Markdown formatting is supported
%   Equations are possible to, e.g $a^2 + b^2 = c^2$.
%   So are lists:
%   - item 1
%   - item 2
%   ```matlab
%   function y = square(x)
%       x^2
%   end