code: def check_path(self, path):
          
          path = os.path.abspath(path)
          if os.path.exists(path):
              return path
          else:
              utils.die("input file does not exists:\n  {}".format(path))
docs: turns path into an absolute path and checks that it exists, then
          returns it as a string.