def getitem(list, index, default=None):
    """
    Return a value from a 'list' for the given 'index' or the 'default' value.
    """
    try:
        return list[index]
    except __HOLE__:
        return default
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/tests/utils.py/getitem