@check_type(dict)
def format_resource_id(resource, separator=':'):
    'Concatenates the four-part ID for a resource record.\n\n    :param dict resource: an ArchivesSpace resource.\n    :param str separator: a separator to insert between the id parts. Defaults\n            to `:`.\n\n    :returns: a concatenated four-part ID for the resource record.\n    :rtype: str\n    '
    resource_id = []
    for x in range(4):
        try:
            resource_id.append(resource['id_{0}'.format(x)])
        except KeyError:
            break
    return separator.join(resource_id)
Concatenates the four-part ID for a resource record.

:param dict resource: an ArchivesSpace resource.
:param str separator: a separator to insert between the id parts. Defaults
        to `:`.

:returns: a concatenated four-part ID for the resource record.
:rtype: str
@check_type(dict)
def format_resource_id(resource, separator=':'):
    'Concatenates the four-part ID for a resource record.\n\n    :param dict resource: an ArchivesSpace resource.\n    :param str separator: a separator to insert between the id parts. Defaults\n            to `:`.\n\n    :returns: a concatenated four-part ID for the resource record.\n    :rtype: str\n    '
    resource_id = []
    for x in range(4):
        try:
            resource_id.append(resource['id_{0}'.format(x)])
        except KeyError:
            break
    return separator.join(resource_id)