code: def test_error_invalid_kwds():
      with pytest.raises(ValueError, match="Received invalid argument"):
          nx.draw(barbell, foo="bar")
  
imports: import itertools
  import os
  import warnings
  import pytest
  import networkx
label_desc: Use image node_id 27 for calling a global function with example usage: test_error_invalid_kwds() without return types