code: def test_worm_descriptor_building_oob():
      """Test performance if part of the worm is out of bounds"""
      module = cellprofiler.modules.untangleworms.UntangleWorms()
      params = make_params(
          dict(
              radii_from_training=numpy.array([5, 5, 5]),
              num_control_points=3,
          )
      )
      result, _, _, _, _ = module.worm_descriptor_building(
          [numpy.array([[1, 15], [11, 25]])], params, (40, 27)
      )
      expected = numpy.zeros((40, 27), bool)
      expected[numpy.arange(1, 12), numpy.arange(15, 26)] = True
      ii, jj = numpy.mgrid[-5:6, -5:6]
      expected = scipy.ndimage.binary_dilation(
          expected, ii * ii + jj * jj <= 25
      )
      expected = numpy.argwhere(expected)
      eorder = numpy.lexsort((expected[:, 0], expected[:, 1]))
      rorder = numpy.lexsort((result[:, 0], result[:, 1]))
      assert numpy.all(result[:, 2] == 1)
      assert len(expected) == len(result)
      assert numpy.all(result[rorder, :2] == expected[eorder, :])
  
imports: import base64
  import io
  import os
  import tempfile
  import zlib
  import imageio
  import centrosome.outline
  import numpy
  import scipy.ndimage
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  import cellprofiler.modules.untangleworms
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 29 for calling a global function with example usage: test_worm_descriptor_building_oob() without return types