code: def test_missing_reference(self):
      embedding = nx.PlanarEmbedding()
      with pytest.raises(
          nx.NetworkXException, match="Invalid reference node."
      ):
          embedding.add_half_edge(1, 2, ccw=3)
  
imports: import pytest
  import networkx
  from networkx.algorithms.planarity import check_planarity_recursive, get_counterexample, get_counterexample_recursive
label_desc: Use image node_id 8 for calling the TestPlanarEmbeddingClass obj's underlying member method code with example usage: obj.test_missing_reference() without return types