code: def test_properties_running_stage(running_stage):
      property_names = {
          RunningStage.TRAINING: "training",
          RunningStage.VALIDATING: "validating",
          RunningStage.TESTING: "testing",
          RunningStage.PREDICTING: "predicting",
      }
  
      my_properties = Properties()
  
      setattr(my_properties, property_names[running_stage], True)
      assert my_properties._running_stage == running_stage
      for stage in {
          RunningStage.TRAINING,
          RunningStage.VALIDATING,
          RunningStage.TESTING,
          RunningStage.PREDICTING,
      }:
          if stage == running_stage:
              assert getattr(my_properties, property_names[stage])
          else:
              assert not getattr(my_properties, property_names[stage])
      setattr(my_properties, property_names[running_stage], False)
      assert my_properties._running_stage is None
  
imports: import pytest
  from flash.core.data.properties import Properties
  from flash.core.utilities.imports import _TOPIC_CORE_AVAILABLE
  from flash.core.utilities.stages import RunningStage
label_desc: Use image node_id 1 for calling a global function with example usage: test_properties_running_stage(running_stage) without return types