def get_file_exists(self, repository, path, revision, base_commit_id=None,
                        *args, **kwargs):
        """Determines if a file exists.

        This will perform an API request to fetch the metadata for a file.

        If using Git, this will expect a base commit ID to be provided.
        """
        try:
            self._api_get_node(repository, path, revision, base_commit_id)

            return True
        except (__HOLE__, URLError, FileNotFoundError):
            return False
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/beanstalk.py/Beanstalk.get_file_exists