code: def test_quantization_calculator():
      assert calculate_quantization_grid([1, 2], 2) == [1.5]
      assert (
          calculate_quantization_grid(
              [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], 1, "Median"
          )
          == []
      )
      assert calculate_quantization_grid(
          [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], 1, "GreedyLogSum"
      ) == [1.5]
      assert calculate_quantization_grid(
          [11, 1, 1, 1, 1, 1, 1, 2], 2, "GreedyLogSum"
      ) == [1.5, 6.5]
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_quantization_calculator() without return types