def _item_by_predicate(list_obj, predicate):
  """
  Iterate through list_obj and return the object that matches the predicate.
  |list_obj| list
  |predicate| f(x) -> bool
  |return| object otherwise None if not found
  """
  for x in list_obj:
    if predicate(x):
      return x
  return None