code: def validate_length_path(
      G, s, t, soln_len, length, path, weight="weight"
  ):
      assert soln_len == length
      validate_path(G, s, t, length, path, weight=weight)
  
imports: import pytest
  import networkx
  from networkx.utils import pairwise
label_desc: Use image node_id 2 for calling a global function with example usage: validate_length_path(G, s, t, soln_len, length, path, weight) without return types