code: def model_installed(name):
          
          data_path = util.get_data_path()
          if not data_path or not data_path.exists():
              raise IOError(f"Can't find spaCy data path: {data_path}")
          if name in {d.name for d in data_path.iterdir()}:
              return True
          if Spacy.is_package(name):  # installed as package
              return True
          if Path(name).exists():  # path to model data directory
              return True
          return False
docs: Check if spaCy language model is installed.
  
          From https://github.com/explosion/spaCy/blob/master/spacy/util.py
  
          :param name:
          :return: