code: def test_ef_minimum_volatility():
      d = d_pass[4]
      pf = build_portfolio(**d)
      min_vol_weights = np.array(
          [
              0.15515521225480033,
              2.168404344971009e-18,
              0.4946241856546514,
              0.35022060209054834,
          ]
      )
      ef_opt_weights = pf.ef_minimum_volatility()
      assert np.allclose(
          ef_opt_weights.values.transpose(),
          min_vol_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 10 for calling a global function with example usage: test_ef_minimum_volatility() without return types