def from_pb_tags(pb_tags):
    """Creates a ``dict`` from ``ProtoTags``.

    Args:
        pb_tags (ProtoTags): The ``ProtoTags`` instance to be converted.

    Returns:
        dict
    """

    if list(pb_tags.tags):
        return {tags.key: tags.value for tags in pb_tags.tags}
    else:
        return {}