code: def test_add_log():
      def fn(module, workspace):
          module.wants_log.value = True
  
      measurements = run_workspace(
          cellprofiler.modules.calculatemath.O_ADD, True, 5, True, 7, fn
      )
      expected = numpy.log10(5 + 7)
      data = measurements.get_current_measurement(
          "Image", MATH_OUTPUT_MEASUREMENTS
      )
      assert round(abs(data - expected), 7) == 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 9 for calling a global function with example usage: test_add_log() without return types