code: def test_plots(close_figures):
      mod = Factor(X.iloc[:, 1:], 3)
      results = mod.fit()
      results.rotate("oblimin")
      fig = results.plot_scree()
  
      fig_loadings = results.plot_loadings()
      assert_equal(3, len(fig_loadings))
  
file_path: statsmodels/statsmodels/multivariate/tests/test_factor.py
imports: import warnings
  from statsmodels.compat.pandas import PD_LT_1_4
  import os
  import numpy
  import pandas
  from statsmodels.multivariate.factor import Factor
  from numpy.testing import assert_equal, assert_array_almost_equal, assert_, assert_raises, assert_array_equal, assert_array_less, assert_allclose
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_plots(close_figures) without return types