code: def test_nbunch_iterator(self):
      G = self.G()
      G.add_nodes_from(["A", "B", "C", "D", "E", "F", "G", "H"])
      n_iter = self.P3.nodes()
      G.add_nodes_from(n_iter)
      assert sorted(G.nodes(), key=str) == [
          1,
          2,
          3,
          "A",
          "B",
          "C",
          "D",
          "E",
          "F",
          "G",
          "H",
      ]
      n_iter = self.P3.nodes()  # rebuild same iterator
      G.remove_nodes_from(
          n_iter
      )  # remove nbunch of nodes (nbunch=iterator)
      assert sorted(G.nodes(), key=str) == [
          "A",
          "B",
          "C",
          "D",
          "E",
          "F",
          "G",
          "H",
      ]
  
imports: import pytest
  import networkx
  from networkx import convert_node_labels_to_integers
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 11 for calling the HistoricalTests obj's underlying member method code with example usage: obj.test_nbunch_iterator() without return types