code: def _find_inside(pred, thing):
      if pred(thing):
          return thing
  
      if isinstance(thing, list) or isinstance(thing, tuple):
          for x in thing:
              result = _find_inside(pred, x)
  
              if result is not None:
                  return result
  
      return None
  
imports: from __future__ import division, print_function
  import logging
  import pyvips
  from pyvips import ffi, vips_lib, Error, _to_bytes, _to_string, GValue, type_map, type_from_name, nickname_find, at_least_libvips
label_desc: Use image node_id 1 for calling a global function with example usage: _find_inside(pred, thing) and returns: None, thing, result