code: def test_compute_local_sensitivity_bounds_gnmax(self):
      counts1 = np.array([10, 0, 0])
      sigma1 = 0.5
      order1 = 1.5
  
      answer1 = np.array(
          [3.13503646e-17, 1.60178280e-08, 5.90681786e-03]
          + [5.99981308e00] * 7
      )
  
      # Test for "going right" in the smooth sensitivity computation.
      out1 = pate_ss.compute_local_sensitivity_bounds_gnmax(
          counts1, 10, sigma1, order1
      )
  
      self._assert_all_close(out1, answer1)
  
      counts2 = np.array([1000, 500, 300, 200, 0])
      sigma2 = 250.0
      order2 = 10.0
  
      # Test for "going left" in the smooth sensitivity computation.
      out2 = pate_ss.compute_local_sensitivity_bounds_gnmax(
          counts2, 2000, sigma2, order2
      )
  
      answer2 = np.array(
          [0.0] * 298
          + [2.77693450548e-7, 2.10853979548e-6]
          + [2.73113623988e-6] * 1700
      )
      self._assert_all_close(out2, answer2)
  
file_path: privacy/research/pate_2018/smooth_sensitivity_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import unittest
  import numpy
  import smooth_sensitivity
label_desc: Use image node_id 3 for calling the PateSmoothSensitivityTest obj's underlying member method code with example usage: obj.test_compute_local_sensitivity_bounds_gnmax() without return types