code: def test_aggregate_function_enum():
      """Tests the functions in ``AggregationFunctionEnum``."""
      array = np.array([1, 2, 6])
      assert AggregationFunctionEnum.mean.value(array) == 3
      assert AggregationFunctionEnum.median.value(array) == 2
      assert AggregationFunctionEnum.nanmean.value(array) == 3
      assert AggregationFunctionEnum.maximum.value(array) == 6
      assert AggregationFunctionEnum.minimum.value(array) == 1
      assert AggregationFunctionEnum.sum.value(array) == 9
      assert AggregationFunctionEnum.weighted_average.value(array) == 3
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_aggregate_function_enum() without return types