def METHOD_NAME():
    diags = np.array([[1, 2], [3, 4], [5, 6]], float)
    arr_diags, nx2_array = gd.persistence_graphical_tools._array_handler(diags)
    assert nx2_array
    for idx in range(len(diags)):
        assert arr_diags[idx][0] == 0
        np.testing.assert_array_equal(arr_diags[idx][1], diags[idx])
    diags = [(1.0, 2.0), (3.0, 4.0), (5.0, 6.0)]
    arr_diags, nx2_array = gd.persistence_graphical_tools._array_handler(diags)
    assert nx2_array
    for idx in range(len(diags)):
        assert arr_diags[idx][0] == 0
        assert arr_diags[idx][1] == diags[idx]
    diags = [(0, (1.0, 2.0)), (0, (3.0, 4.0)), (0, (5.0, 6.0))]
    arr_diags, nx2_array = gd.persistence_graphical_tools._array_handler(diags)
    assert not nx2_array
    assert arr_diags == diags