code: def test_efficient_frontier():
      d = d_pass[4]
      pf = build_portfolio(**d)
      efrontier = np.array(
          [
              [0.13309804281267365, 0.2],
              [0.13382500317474913, 0.21],
              [0.13491049715255884, 0.22],
              [0.13634357140158387, 0.23],
              [0.13811756026939967, 0.24],
              [0.14021770106367654, 0.25],
              [0.1426296319926618, 0.26],
              [0.1453376889002686, 0.27],
              [0.14832574432346657, 0.28],
              [0.15157724434785497, 0.29],
              [0.15507572162309227, 0.3],
          ]
      )
      targets = [round(0.2 + 0.01 * i, 2) for i in range(11)]
      ef_efrontier = pf.ef_efficient_frontier(targets)
      assert np.allclose(ef_efrontier, efrontier, atol=weak_abse)
  
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 14 for calling a global function with example usage: test_efficient_frontier() without return types