code: def get_model_meta(path):
      
      model_path = ensure_path(path)
      if not model_path.exists():
          raise IOError(Errors.E052.format(path=path2str(model_path)))
      meta_path = model_path / "meta.json"
      if not meta_path.is_file():
          raise IOError(Errors.E053.format(path=meta_path))
      meta = srsly.read_json(meta_path)
      for setting in ["lang", "name", "version"]:
          if setting not in meta or not meta[setting]:
              raise ValueError(Errors.E054.format(setting=setting))
      return meta
docs: Get model meta.json from a directory path and validate its contents.
  
      path (unicode or Path): Path to model directory.
      RETURNS (dict): The model's meta data.