code: def test_expected_fails():
      for fail_test_settings in d_fail:
          print("++++++++++++++++++++++++++++++++++++")
          print("fail_test_settings: ", fail_test_settings)
          with pytest.raises(Exception):
              build_portfolio(**fail_test_settings)
  
imports: import datetime
  import os
  import pathlib
  import matplotlib.pylab
  import numpy
  import pandas
  import pytest
  import quandl
  import yfinance
  from finquant.efficient_frontier import EfficientFrontier
  from finquant.portfolio import Portfolio, build_portfolio
  from finquant.stock import Stock
label_desc: Use image node_id 7 for calling a global function with example usage: test_expected_fails() without return types