code: def draw_to_surface(edge_segments, bandwidth, accuracy, accumulator):
      img = np.zeros((accuracy + 1, accuracy + 1))
      for segments in edge_segments:
          for point in segments:
              accumulator(img, point, accuracy)
      return gaussian(img, sigma=bandwidth / 2)
  
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 12 for calling a global function with example usage: draw_to_surface(edge_segments, bandwidth, accuracy, accumulator) and returns: gaussian