def _get_path(crumb_path: str) ->str:
    """ Return the path string from `crumb_path`.
    Parameters
    ----------
    crumb_path: str or Crumb

    Returns
    -------
    path: str
    """
    if hasattr(crumb_path, '_path'):
        crumb_path = crumb_path._path
    if not isinstance(crumb_path, str):
        raise TypeError('Expected `crumb_path` to be a string, got {}.'.
            format(type(crumb_path)))
    return crumb_path
