class_docstr: Unit tests for the has bridges function.
code: def test_has_bridges_raises_root_not_in_G(self):
      G = nx.Graph()
      G.add_nodes_from([1, 2, 3])
      with pytest.raises(nx.NodeNotFound):
          nx.has_bridges(G, root=6)
  
file_path: networkx/networkx/algorithms/tests/test_bridges.py
imports: import pytest
  import networkx
label_desc: Use image node_id 2 for calling the TestHasBridges obj's underlying member method code with example usage: obj.test_has_bridges_raises_root_not_in_G() without return types