code: def test_get_noised_result(self, inner_query, arity, expected_tree):
      if inner_query == "central":
          query = tree_range_query.TreeRangeSumQuery.build_central_gaussian_query(
              10.0, 0.0, arity
          )
          record = tf.constant([1, 0, 0, 0], dtype=tf.float32)
          expected_tree = tf.cast(expected_tree, tf.float32)
      elif inner_query == "distributed":
          query = tree_range_query.TreeRangeSumQuery.build_distributed_discrete_gaussian_query(
              10.0, 0.0, arity
          )
          record = tf.constant([1, 0, 0, 0], dtype=tf.int32)
      global_state = query.initial_global_state()
      params = query.derive_sample_params(global_state)
      preprocessed_record = query.preprocess_record(params, record)
      sample_state, global_state, _ = query.get_noised_result(
          preprocessed_record, global_state
      )
  
      self.assertAllClose(sample_state, expected_tree)
  
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 7 for calling the TreeRangeSumQueryTest obj's underlying member method code with example usage: obj.test_get_noised_result(inner_query, arity, expected_tree) without return types