code: def test_missing():
      data = np.empty((200, 50))
      data[0, 0] = np.nan
      with pytest.raises(
          ValueError, match="data contains non-finite values"
      ):
          PCA(data)
  
imports: from statsmodels.compat.platform import PLATFORM_WIN32
  import warnings
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_allclose, assert_equal, assert_raises
  from statsmodels.multivariate.pca import PCA, pca
  from statsmodels.multivariate.tests.results.datamlw import data, princomp1, princomp2
  from statsmodels.tools.sm_exceptions import EstimationWarning
label_desc: Use image node_id 1 for calling a global function with example usage: test_missing() without return types