def test_input_formats_shapes():
    """
    Test that the shapes are the same for the bench and interleved input formats
    """
    shape1 = (2, 3, 4)
    shape2 = (3, 4, 5)

    bench = contract_path("abc,bcd->da", shape1, shape2, shapes=True)
    interleved = contract_path(shape1, [1, 2, 3], shape2, [2, 3, 4], [4, 1], shapes=True)
    assert bench[0] == interleved[0]

    Test that the shapes are the same for the bench and interleved input formats
    
opt_einsum/tests/test_input.py