code: def check_planarity_recursive(G, counterexample=False):
      """Recursive version of :meth:`check_planarity`."""
      planarity_state = LRPlanarity(G)
      embedding = planarity_state.lr_planarity_recursive()
      if embedding is None:
          # graph is not planar
          if counterexample:
              return False, get_counterexample_recursive(G)
          else:
              return False, None
      else:
          # graph is planar
          return True, embedding
  
imports: from collections import defaultdict
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: check_planarity_recursive(G, counterexample) and returns: True,  embedding, False,  get_counterexample_recursive, False,  None