code: def test_issue_422():
      # Regression test of issue # 422
      #
      # If no operation is chosen, get_measurement_columns and
      # get_categories report measurements for both operands when
      # they should report for only a single one
      #
      module = cellprofiler.modules.calculatemath.CalculateMath()
      module.operation.value = cellprofiler.modules.calculatemath.O_NONE
      module.operands[0].operand_objects.value = OBJECT[0]
      module.operands[1].operand_objects.value = OBJECT[1]
      module.operands[
          0
      ].operand_choice.value = (
          cellprofiler.modules.calculatemath.MC_OBJECT
      )
      module.operands[
          1
      ].operand_choice.value = (
          cellprofiler.modules.calculatemath.MC_OBJECT
      )
      module.output_feature_name.value = OUTPUT_MEASUREMENTS
  
      c = module.get_measurement_columns(None)
      assert len(c) == 1
      assert c[0][0] == OBJECT[0]
      assert c[0][1] == MATH_OUTPUT_MEASUREMENTS
  
      assert len(module.get_categories(None, OBJECT[0])) == 1
      assert len(module.get_categories(None, OBJECT[1])) == 0
  
      assert (
          len(
              module.get_measurements(
                  None,
                  OBJECT[0],
                  cellprofiler.modules.calculatemath.C_MATH,
              )
          )
          == 1
      )
      assert (
          len(
              module.get_measurements(
                  None,
                  OBJECT[1],
                  cellprofiler.modules.calculatemath.C_MATH,
              )
          )
          == 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 24 for calling a global function with example usage: test_issue_422() without return types