def METHOD_NAME():
    assert _attrs._getitem([1, 2, 3], 1) == 2
    assert _attrs._getitem(2, 0) == 2
    expr = _attrs._getitem(Categorical([3, (4, 5), 6], label='a'), 1)
    assert expr.freeze({'a': 3}) == 3
    assert expr.freeze({'a': (4, 5)}) == 5
    assert expr.freeze({'a': 6}) == 6