code: def iexists(irods_path):
      
      try:
          subprocess.check_output(
              'ils {}'.format(irods_path),
              shell=True,
              stderr=subprocess.PIPE,
          )
          return True
      except subprocess.CalledProcessError:
          return False
docs: Returns True of iRODS path exists, otherwise False