code: def expand_until_touching(labels):
      """
      Expand objects, assigning every pixel in the
      image to an object. Background pixels are assigned to the nearest
      object.
      """
      distance = numpy.max(labels.shape)
      return expand(labels, distance)
  
imports: from typing import Literal
  import centrosome.cpmorphology
  import numpy
  import scipy.ndimage
  import skimage.morphology
  import mahotas
label_desc: Use image node_id 7 for calling a global function with example usage: expand_until_touching(labels) and returns: expand