def METHOD_NAME(self):
    annotation_list = []
    durations = []
    file_names = []
    if self.annotation_file is None:
        return [], []
    with self.annotation_file.open() as json_file:
        for line in json_file:
            record = json.loads(line)
            annotation_list.append(record)
            duration = (float(record['duration']))
            if self.max_duration and duration > self.max_duration:
                continue
            durations.append(duration)
            filename = Path(record["audio_filepath"]).name
            filename = filename.replace(self.default_suffix, self.suffix)
            file_names.append(filename)
    if self.top_n:
        sorted_by_duration = np.argsort(durations)
        subset = sorted_by_duration[:self.top_n] if len(sorted_by_duration) > self.top_n else sorted_by_duration
        return [annotation_list[idx] for idx in subset], [file_names[idx] for idx in subset]
    return annotation_list, file_names