code: def test_add_object_object_same():
      """Regression test: add two measurements from the same object
  
      The bug was that the measurement gets added twice
      """
  
      def fn(module, workspace):
          module.operands[1].operand_objects.value = OBJECT[0]
          module.operands[1].operand_measurement.value = "measurement0"
  
      measurements = run_workspace(
          cellprofiler.modules.calculatemath.O_ADD,
          False,
          numpy.array([5, 6]),
          False,
          numpy.array([-1, -1]),
          fn,
      )
      data = measurements.get_current_measurement(
          OBJECT[0], MATH_OUTPUT_MEASUREMENTS
      )
      assert len(data) == 2
      assert round(abs(data[0] - 10), 7) == 0
      assert round(abs(data[1] - 12), 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 18 for calling a global function with example usage: test_add_object_object_same() without return types