code: def test_buildPF_pass_2():
      d = d_pass[2]
      pf = build_portfolio(**d)
      assert isinstance(pf, Portfolio)
      assert isinstance(pf.get_stock(names[0]), Stock)
      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_pf2).all()).all()
      assert (pf.comp_weights() - weights_no_df_pf <= strong_abse).all()
      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 3 for calling a global function with example usage: test_buildPF_pass_2() without return types