code: def test_riemann_2(self) -> None:
      expected_step_sizes_lrm = [0.5, 0.5]
      expected_step_sizes_trapezoid = [0.25, 0.25]
      expected_left = [0.0, 0.5]
      expected_right = [0.5, 1.0]
      expected_middle = [0.25, 0.75]
      expected_trapezoid = [0.0, 1.0]
      self._assert_steps_and_alphas(
          2,
          expected_step_sizes_lrm,
          expected_step_sizes_trapezoid,
          expected_left,
          expected_right,
          expected_middle,
          expected_trapezoid,
      )
  
file_path: captum/tests/attr/test_approximation_methods.py
imports: import unittest
  from typing import List
  import torch
  from captum.attr._utils.approximation_methods import Riemann, riemann_builders
  from tests.helpers.basic import assertTensorAlmostEqual
label_desc: Use image node_id 3 for calling the Test obj's underlying member method code with example usage: obj.test_riemann_2() without return types