code: def test_check_missing_nan_raises():
      with raises(ValueError):
          pm._check_missing(pd.Series([1, np.nan, 3]), "error")
  
imports: import numpy
  import pandas
  import os.path
  from pytest import approx, raises, mark, skip
  import lenskit.metrics.predict
  import lenskit.util.test
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_missing_nan_raises() without return types