def METHOD_NAME(self):
    """Locates the experiment file."""
    file_type_filter = \
        u"OpenSesame files (*.osexp *.opensesame.tar.gz *.opensesame);;OpenSesame script and file pool (*.opensesame.tar.gz);;OpenSesame script (*.opensesame)"
    path = QtWidgets.QFileDialog.getOpenFileName(self,
                                                 u"Open experiment file", filter=file_type_filter)
    # In PyQt5, the QFileDialog.getOpenFileName returns a tuple instead of
    # a string, of which the first position contains the path.
    if isinstance(path, tuple):
        path = path[0]
    if path == u"":
        return
    self.ui.edit_experiment.setText(path)