code: def first_true(iterable, default=None, pred=None):
      """
      Returns the first true value in the iterable.
  
      If no true value is found, returns *default*
  
      If *pred* is not None, returns the first item for which
      ``pred(item) == True`` .
  
          >>> first_true(range(10))
          1
          >>> first_true(range(10), pred=lambda x: x > 5)
          6
          >>> first_true(range(10), default='missing', pred=lambda x: x > 9)
          'missing'
  
      """
      return next(filter(pred, iterable), default)
  
imports: import math
  import operator
  import warnings
  from collections import deque
  from collections.abc import Sized
  from functools import reduce
  from itertools import chain, combinations, compress, count, cycle, groupby, islice, product, repeat, starmap, tee, zip_longest
  from random import randrange, sample, choice
  from sys import hexversion
label_desc: Use image node_id 23 for calling a global function with example usage: first_true(iterable, default, pred) and returns: next