code: def test_to_undirected_reciprocal(self):
      G = self.Graph()
      G.add_edge(1, 2)
      assert G.to_undirected().has_edge(1, 2)
      assert not G.to_undirected(reciprocal=True).has_edge(1, 2)
      G.add_edge(2, 1)
      assert G.to_undirected(reciprocal=True).has_edge(1, 2)
  
imports: import pytest
  import networkx
  from networkx.utils import nodes_equal
  from .test_graph import BaseAttrGraphTester, BaseGraphTester
  from .test_graph import TestEdgeSubgraph
  from .test_graph import TestGraph
label_desc: Use image node_id 15 for calling the BaseDiGraphTester obj's underlying member method code with example usage: obj.test_to_undirected_reciprocal() without return types