    def test_same_and_different_input_accessors(self):
        """
        Before _fuse_slice_and_strided_op the fused_elementwise ops have different
        input tensors. After _fuse_slice_and_strided_op, the fused_elementwise
        ops have the same input tensor and depending on the slice indices, the
        same or different input accessor.
        """

        # Input accessors are the same -- fuse them!
        self._test_input_accessors_impl(
            slice1_start=[0, 0, 0],
            slice1_end=[32, 64, 50],
            slice2_start=[0, 0, 0],
            slice2_end=[32, 64, 50],
            should_fuse=True,
        )
        # Input accessors are different -- don't fuse.
        self._test_input_accessors_impl(
            slice1_start=[0, 0, 0],
            slice1_end=[32, 64, 50],
            slice2_start=[0, 0, 50],
            slice2_end=[32, 64, 100],
            should_fuse=False,
        )
Before _fuse_slice_and_strided_op the fused_elementwise ops have different
input tensors. After _fuse_slice_and_strided_op, the fused_elementwise
ops have the same input tensor and depending on the slice indices, the
same or different input accessor.
tests/unittest/compiler/test_fuse_duplicate_fused_elementwise.py