code: def _search_on_path(filenames):
      """Find file on system path."""
      # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52224
  
      from os.path import exists, abspath, join
      from os import pathsep, environ
  
      search_path = environ["PATH"]
  
      paths = search_path.split(pathsep)
      for path in paths:
          for filename in filenames:
              if exists(join(path, filename)):
                  return abspath(join(path, filename))
  
imports: from pytools import memoize
  import os
  import sys
  from tempfile import mkstemp
  from os import unlink
  from pytools.prefork import call_capture_output
label_desc: Use image node_id 8 for calling a global function with example usage: _search_on_path(filenames) and returns: abspath