code: def advect_resample_all(
      gradients,
      edge_segments,
      iterations,
      accuracy,
      min_segment_length,
      max_segment_length,
      segment_class,
  ):
      vert, horiz = gradients
      return [
          advect_and_resample(
              vert,
              horiz,
              edges,
              iterations,
              accuracy,
              min_segment_length,
              max_segment_length,
              segment_class,
          )
          for edges in edge_segments
      ]
  
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 10 for calling a global function with example usage: advect_resample_all(gradients, edge_segments, iterations, accuracy, min_segment_length, max_segment_length, segment_class) and returns: unknown