class_docstr: A ModelProvider manages model files on disk and
  file download is not available.
docstr: Ensures required model is available at given location.
  
  Parameters:
      model_directory (str):
          Expected model_directory to be available.
  
  Raises:
      IOError:
          If model can not be retrieved.
  
  Returns:
      str:
          Available model directory.
docstr_tok: ["Ensures","required","model","is","available","at","given","location",".","Parameters",":","model_directory","(","str",")",":","Expected","model_directory","to","be","available",".","Raises",":","IOError",":","If","model","can","not","be","retrieved",".","Returns",":","str",":","Available","model","directory","."]
code: def get(self, model_directory: str) -> str:
      """
      Ensures required model is available at given location.
  
      Parameters:
          model_directory (str):
              Expected model_directory to be available.
  
      Raises:
          IOError:
              If model can not be retrieved.
  
      Returns:
          str:
              Available model directory.
      """
      # Expend model directory if needed.
      if not isabs(model_directory):
          model_directory = join(
              self.DEFAULT_MODEL_PATH, model_directory
          )
      # Download it if not exists.
      model_probe: str = join(model_directory, self.MODEL_PROBE_PATH)
      if not exists(model_probe):
          if not exists(model_directory):
              makedirs(model_directory)
              self.download(
                  model_directory.split(sep)[-1], model_directory
              )
              self.writeProbe(model_directory)
      return model_directory
  
file_path: spleeter/spleeter/model/provider/__init__.py
imports: from abc import ABC, abstractmethod
  from os import environ, makedirs
  from os.path import exists, isabs, join, sep
label_desc: Use image node_id 3 for calling the ModelProvider obj's underlying member method code with example usage: obj.get(model_directory) and returns: model_directory