code: def test_pass_initial_sample_state_to_get_noised_result(self):
      query = tree_range_query.TreeRangeSumQuery.build_distributed_discrete_gaussian_query(
          10.0, 0.0, 2
      )
      global_state = query.initial_global_state()
      template = tf.TensorSpec.from_tensor(
          tf.constant([1, 2, 3, 4], dtype=tf.int32)
      )
      sample_state = query.initial_sample_state(template)
      result = query.get_noised_result(sample_state, global_state)[0]
      expected_result = [[0], [0] * 2, [0] * 4]
      self.assertAllClose(result, expected_result)
  
file_path: privacy/tensorflow_privacy/privacy/dp_query/tree_range_query_test.py
imports: import math
  from absl.testing import parameterized
  import tensorflow
  from tensorflow_privacy.privacy.dp_query import tree_range_query
label_desc: Use image node_id 3 for calling the TreeRangeSumQueryTest obj's underlying member method code with example usage: obj.test_pass_initial_sample_state_to_get_noised_result() without return types