code: def test_NAAction_basic():
      import pytest
  
      pytest.raises(ValueError, NAAction, on_NA="pord")
      pytest.raises(ValueError, NAAction, NA_types=("NaN", "asdf"))
      pytest.raises(ValueError, NAAction, NA_types="NaN")
  
      assert_no_pickling(NAAction())
  
file_path: patsy/patsy/missing.py
imports: import numpy
  from patsy import PatsyError
  from patsy.util import safe_isnan, safe_scalar_isnan, no_pickling, assert_no_pickling
label_desc: Use image node_id 2 for calling a global function with example usage: test_NAAction_basic() without return types