code: def test_img_379():
      """Regression test for IMG-379, divide by zero"""
  
      measurements = run_workspace(
          cellprofiler.modules.calculatemath.O_DIVIDE, True, 35, True, 0
      )
      data = measurements.get_current_measurement(
          "Image", MATH_OUTPUT_MEASUREMENTS
      )
      assert numpy.isnan(data)
  
      measurements = run_workspace(
          cellprofiler.modules.calculatemath.O_DIVIDE,
          False,
          numpy.array([1.0]),
          False,
          numpy.array([0.0]),
      )
      data = measurements.get_current_measurement(
          OBJECT[0], MATH_OUTPUT_MEASUREMENTS
      )
      assert len(data) == 1
      assert numpy.isnan(data[0])
  
imports: import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT, R_PARENT
  import cellprofiler.modules.calculatemath
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
label_desc: Use image node_id 19 for calling a global function with example usage: test_img_379() without return types