code: def test_oserror(tmpdir):
      resource = textacy.resources.ConceptNet(data_dir=str(tmpdir))
      with pytest.raises(OSError):
          _ = resource.antonyms
  
imports: import pytest
  import textacy
  import textacy.resources
label_desc: Use image node_id 3 for calling a global function with example usage: test_oserror(tmpdir) without return types