code: def _assert_solution_properties(G, aug_edges, avail_dict=None):
      """Checks that aug_edges are consistently formatted"""
      if avail_dict is not None:
          assert all(
              e in avail_dict for e in aug_edges
          ), "when avail is specified aug-edges should be in avail"
  
      unique_aug = set(map(tuple, map(sorted, aug_edges)))
      unique_aug = list(map(tuple, map(sorted, aug_edges)))
      assert len(aug_edges) == len(unique_aug), "edges should be unique"
  
      assert not any(
          u == v for u, v in unique_aug
      ), "should be no self-edges"
  
      assert not any(
          G.has_edge(u, v) for u, v in unique_aug
      ), "aug edges and G.edges should be disjoint"
  
imports: import itertools
  import random
  import pytest
  import networkx
  from networkx.algorithms.connectivity import k_edge_augmentation
  from networkx.algorithms.connectivity.edge_augmentation import _unpack_available_edges, collapse, complement_edges, is_k_edge_connected, is_locally_k_edge_connected
  from networkx.utils import pairwise
label_desc: Use image node_id 22 for calling a global function with example usage: _assert_solution_properties(G, aug_edges, avail_dict) without return types