code: def test_efficient_return():
      d = d_pass[4]
      pf = build_portfolio(**d)
      efficient_return_weights = np.array(
          [
              0.09339785373366818,
              0.1610699937778475,
              0.5623652130240258,
              0.18316693946445858,
          ]
      )
      ef_opt_weights = pf.ef_efficient_return(0.2542)
      assert np.allclose(
          ef_opt_weights.values.transpose(),
          efficient_return_weights,
          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 12 for calling a global function with example usage: test_efficient_return() without return types