code: def find_first(pattern: str, path: str) -> str:
      
      try:
          return find(pattern, path)[0]
      except IndexError:
          log.critical('''Couldn't find "{}" in "{}"''', pattern, path)
          raise
docs: Finds first file in ``path`` whose filename matches ``pattern`` (via
      :func:`fnmatch.fnmatch`), or raises :exc:`IndexError`.