code: def test_show_nodes(self):
      f = nx.classes.filters.show_nodes([1, 2, 3])
      assert f(1)
      assert f(2)
      assert f(3)
      assert not f(4)
      assert not f(0)
      assert not f("a")
      pytest.raises(TypeError, f, 1, 2)
      pytest.raises(TypeError, f)
  
file_path: networkx/networkx/classes/tests/test_filters.py
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling the TestFilterFactory obj's underlying member method code with example usage: obj.test_show_nodes() without return types