code: def setup_class(cls):
      # Create a path graph on five nodes.
      cls.G = G = nx.path_graph(5)
      # Add some node, edge, and graph attributes.
      for i in range(5):
          G.nodes[i]["name"] = f"node{i}"
      G.edges[0, 1]["name"] = "edge01"
      G.edges[3, 4]["name"] = "edge34"
      G.graph["name"] = "graph"
      # Get the subgraph induced by the first and last edges.
      cls.H = nx.edge_subgraph(G, [(0, 1), (3, 4)])
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 1 for calling the TestEdgeSubGraph obj's underlying member method code with example usage: obj.setup_class(cls) without return types