def METHOD_NAME():
    a = h.Section(name="axon")
    a.nseg = 5
    rv = {seg.x: seg._ref_v for seg in a.allseg()}
    h.finitialize(-65)
    assert rv[0.3][0] == -65.0
    expect_err("print(rv[0.3][1])")
    expect_err("rv[0.3][1] = 50.0")
    a.nseg = 3
    print(rv[0.3])
    expect_err("print(rv[0.3][0])")
    expect_err("rv[0.3][0] = 0.1")
    assert rv[0.5][0] == -65.0
    del a
    expect_err("print(rv[0.5][0])")
    del rv
    locals()