          return path
  
  
  def resolve_model_path(name):
      data_path = get_data_path()
      if not data_path or not data_path.exists():
          raise IOError("Can't find spaCy data path: %s" % path2str(data_path))
      if isinstance(name, basestring_):
          if (data_path / name).exists(): # in data dir or shortcut link
 
</s> remove     if type(data) == dict:
 </s> add     if isinstance(data, dict): </s> remove def is_package(origin):
    """
    Check if string maps to a package installed via pip.
 </s> add def is_package(name):
    """Check if string maps to a package installed via pip.

    Args:
        name (unicode): Name of package.
    Returns:
        bool: True if installed package, False if not.
 </s> remove     """
    Check if a meta.json exists in a package and return its contents as a
    dictionary. If require is set to True, raise an error if no meta.json found.
 </s> add     """Check if a meta.json exists in a package and return its contents.

    Args:
        package_path (Path): Path to model package directory.
        require (bool): If True, raise error if no meta.json is found.
    Returns:
        dict or None: Model meta.json data or None.
    """Resolve a model name or string to a model path.

    Args:
        name (unicode): Package name, shortcut link or model path.
    Returns:
        Path: Path to model data directory.
    """
          return path
  
  
  def resolve_model_path(name):
    """Resolve a model name or string to a model path.

    Args:
        name (unicode): Package name, shortcut link or model path.
    Returns:
        Path: Path to model data directory.
    """
      data_path = get_data_path()
      if not data_path or not data_path.exists():
          raise IOError("Can't find spaCy data path: %s" % path2str(data_path))
      if isinstance(name, basestring_):
          if (data_path / name).exists(): # in data dir or shortcut link
keep keep keep add keep keep keep keep keep
 Add docstrings, error messages and fix consistency 
spacy/util.py