code: def _set_file_path(path):
      """Find the language_ids.json under the given path or the above it.
      Intended to band aid the different paths returned in restored and continued training.
      """
      path_restore = os.path.join(
          os.path.dirname(path), "language_ids.json"
      )
      path_continue = os.path.join(path, "language_ids.json")
      fs = fsspec.get_mapper(path).fs
      if fs.exists(path_restore):
          return path_restore
      if fs.exists(path_continue):
          return path_continue
      return None
  
imports: import os
  from typing import Any, Dict, List
  import fsspec
  import numpy
  import torch
  from coqpit import Coqpit
  from TTS.config import check_config_and_model_args
  from TTS.tts.utils.managers import BaseIDManager
label_desc: Use image node_id 1 for calling a global function with example usage: _set_file_path(path) and returns: None, path_restore, path_continue