code: def test_hide_nodes(self):
      f = nx.classes.filters.hide_nodes([1, 2, 3])
      assert not f(1)
      assert not f(2)
      assert not f(3)
      assert f(4)
      assert f(0)
      assert 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 2 for calling the TestFilterFactory obj's underlying member method code with example usage: obj.test_hide_nodes() without return types