def _get_alias(full_or_partial_id):
    """
    Returns the alias from a full or partial id

    Parameters
    ----------
    full_or_partial_id: str

    Returns
    -------
    str
    """
    # Note that this works for identifiers of all types currently described in the spec, i.e.:
    # 1. did:factom:f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b#management-2
    # 2. did:factom:mainnet:f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b#management-2
    # 2. #inbox
    # 3. management-1
    # The function will return management-2, inbox and management-1, respectively
    return full_or_partial_id.split("#")[-1]