code: def test_two_measurements_any():
      for measurements, expected in (
          ((0, 0), 0),
          ((0, 1), 1),
          ((1, 0), 1),
          ((1, 1), 1),
      ):
          module, workspace = make_workspace(measurements, [])
          flag = module.flags[0]
          assert isinstance(
              flag, cellprofiler_core.setting.SettingsGroup
          )
          flag.combination_choice.value = (
              cellprofiler.modules.flagimage.C_ANY
          )
          module.add_measurement(flag)
          for i in range(2):
              measurement = flag.measurement_settings[i]
              assert isinstance(
                  measurement, cellprofiler_core.setting.SettingsGroup
              )
              measurement.measurement.value = image_measurement_name(i)
              measurement.wants_minimum.value = False
              measurement.wants_maximum.value = True
              measurement.maximum_value.value = 0.5
          module.run(workspace)
          m = workspace.measurements
          assert isinstance(
              m, cellprofiler_core.measurement.Measurements
          )
          assert MEASUREMENT_NAME in m.get_feature_names("Image")
          assert (
              m.get_current_image_measurement(MEASUREMENT_NAME)
              == expected
          )
  
imports: import contextlib
  import os
  import tempfile
  import numpy
  import pytest
  import six.moves
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER
  from cellprofiler_core.constants.workspace import DISPOSITION_CONTINUE, DISPOSITION_SKIP
  import tests.frontend.modules
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.flagimage
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  from .None import test_filterobjects
label_desc: Use image node_id 16 for calling a global function with example usage: test_two_measurements_any() without return types