The board of retirement or the board of investments, as applicable, may obtain a loan and pledge a portion of the assets of the retirement fund as security for the repayment of the loan if the board finds all of the following:
The assets of the retirement fund pledged as security for the loan shall be subject to execution and other processes of the court only in connection with a proceeding to enforce the loan. The costs associated with securing and repaying the loan, including interest, shall be a charge against investment earnings of the fund.
Ca. Gov. Code § 31603