code: def create_segment(edge):
      return np.array(
          [
              [edge[0], edge[1], edge[2], edge[5]],
              [edge[0], edge[3], edge[4], edge[5]],
          ]
      )
  
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 3 for calling the WeightedSegment obj's underlying member method code with example usage: obj.create_segment(edge) and returns: np