code: def resample_edges(
      edge_segments, min_segment_length, max_segment_length, ndims
  ):
      replaced_edges = []
      for segments in edge_segments:
          replaced_edges.append(
              resample_edge(
                  segments,
                  min_segment_length,
                  max_segment_length,
                  ndims,
              )
          )
      return replaced_edges
  
imports: from __future__ import annotations
  from math import ceil
  from dask import compute, delayed
  from pandas import DataFrame
  import numpy
  import pandas
  import param
  from .utils import ngjit
label_desc: Use image node_id 5 for calling a global function with example usage: resample_edges(edge_segments, min_segment_length, max_segment_length, ndims) and returns: replaced_edges