code: def test_is_one_of_factory(self):
      v = cf.is_one_of_factory([None, 12])
  
      v(12)
      v(None)
      msg = r"Value must be one of None\|12"
      with pytest.raises(ValueError, match=msg):
          v(1.1)
  
imports: import pytest
  from pandas._config import config
  from pandas._config.config import OptionError
  import pandas
  import pandas._testing
label_desc: Use image node_id 3 for calling the TestConfig obj's underlying member method code with example usage: obj.test_is_one_of_factory() without return types