code: def test_generate_linear_path():
      input_shape = (28, 28, 1)
      target = np.ones(input_shape)
      baseline = np.zeros(input_shape)
      n_steps = 3
  
      expected_output = [baseline, 1 / 2 * (target - baseline), target]
  
      output = IntegratedGradients.generate_linear_path(
          baseline, target, n_steps
      )
  
      np.testing.assert_almost_equal(output, expected_output)
  
imports: import numpy
  from tf_explain.core.integrated_gradients import IntegratedGradients
label_desc: Use image node_id 2 for calling a global function with example usage: test_generate_linear_path() without return types