def find_index(f, seq):
  for index, item in enumerate(seq):
    if f(item):
      return index
Return the index of the first item in sequence where f(item) == True.
dataset/ETHPy150Open ucb-sts/sts/sts/util/convenience.py/find_index