def get_list_inverse_index(unique_ids):
    """Get value to position index from a list of unique ids.

    Args:
      unique_ids: A list of unique integers of strings.

    Returns:
      result: a dict from value to position

    Raises:
      TypeError: If unique_ids is not a list.
    """
    if not isinstance(unique_ids, list):
        raise TypeError('unique_ids must be a list')

    result = dict()

    for i, unique_id in enumerate(unique_ids):
        result[unique_id] = i

    return result