def get_index(array, key, default=None):
    try:
        return array.index(key)
    except __HOLE__:
        return default
dataset/ETHPy150Open redhat-cip/software-factory/image/edeploy/mngids.py/get_index