code: def test_buildPF_pass_5():
      d = d_pass[5]
      pf = build_portfolio(**d)
      assert isinstance(pf, Portfolio)
      assert isinstance(pf.data, pd.DataFrame)
      assert isinstance(pf.portfolio, pd.DataFrame)
      assert len(pf.stocks) == len(pf.data.columns)
      assert pf.data.columns.tolist() == names
      assert pf.data.index.name == "Date"
      assert ((pf.portfolio == df_pf).all()).all()
      assert (pf.comp_weights() - weights_df_pf <= strong_abse).all()
      assert expret_orig - pf.expected_return <= strong_abse
      assert vol_orig - pf.volatility <= strong_abse
      assert sharpe_orig - pf.sharpe <= strong_abse
      assert freq_orig - pf.freq <= strong_abse
      assert risk_free_rate_orig - pf.risk_free_rate <= strong_abse
      pf.properties()
  
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 6 for calling a global function with example usage: test_buildPF_pass_5() without return types