code: def find_in_path(path, file):
      """Find a file in a given path string."""
      for p in path.split(os.pathsep):
          candidate = os.path.join(p, file)
          if os.path.exists(candidate) and os.path.isfile(candidate):
              return candidate
      return False
  
file_path: TensorFlowOnSpark/tensorflowonspark/util.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import nested_scopes
  from __future__ import print_function
  import logging
  import os
  import socket
  import subprocess
  import errno
  from socket import error
  from .None import gpu_info
label_desc: Use image node_id 3 for calling a global function with example usage: find_in_path(path, file) and returns: False, candidate