docstr: Determines the path in which to save a given report
  
  Arguments
  ---------
  epoch: int
      the epoch number
  key: str
      the key within the training step definition in the
      hyperparameter file (e.g. "wer_file")
  final: bool
      whether or not this si the final report. If
      final is false, an epoch number will be inserted into the path
  
  Arguments
  ---------
  file_name: str
      the report file name
docstr_tok: ["Determines","the","path","in","which","to","save","a","given","report","Arguments","--","--","--","--","-","epoch",":","int","the","epoch","number","key",":","str","the","key","within","the","training","step","definition","in","the","hyperparameter","file","(","e.g",".","``","wer_file","''",")","final",":","bool","whether","or","not","this","si","the","final","report",".","If","final","is","false",",","an","epoch","number","will","be","inserted","into","the","path","Arguments","--","--","--","--","-","file_name",":","str","the","report","file","name"]
code: def _get_report_path(self, epoch, key, final):
      """Determines the path in which to save a given report
  
      Arguments
      ---------
      epoch: int
          the epoch number
      key: str
          the key within the training step definition in the
          hyperparameter file (e.g. "wer_file")
      final: bool
          whether or not this si the final report. If
          final is false, an epoch number will be inserted into the path
  
      Arguments
      ---------
      file_name: str
          the report file name
      """
      file_name = self.train_step[key]
      if not final:
          file_name = self._get_interim_report_path(epoch, file_name)
      return file_name
  
imports: from speechbrain.dataio.dataset import FilteredSortedDynamicItemDataset, DynamicItemDataset
  from speechbrain.dataio.sampler import BalancingDataSampler
  from speechbrain.utils.data_utils import undo_padding
  import datasets
  import logging
  import os
  import random
  import speechbrain
  import sys
  from enum import Enum
  from collections import namedtuple
  from hyperpyyaml import load_hyperpyyaml
  from functools import partial
  from speechbrain.utils.distributed import run_on_main
  from speechbrain.utils.pretrained import save_for_pretrained
  from speechbrain.lobes.models.g2p.dataio import enable_eos_bos, grapheme_pipeline, phoneme_pipeline, tokenizer_encode_pipeline, add_bos_eos, get_sequence_key, phonemes_to_label
  from speechbrain.dataio.wer import print_alignments
  from speechbrain.wordemb.util import expand_to_chars
  from io import StringIO
  from speechbrain.utils import hpopt
  import numpy
label_desc: Use image node_id 15 for calling the G2PBrain obj's underlying member method code with example usage: obj._get_report_path(epoch, key, final) and returns: file_name