def dict_to_entity(entity_dict: dict):
    """Convert a dict of str: str entries to a single entity bytes object.
    """

    line_template = '\t"{}" "{}"'
    entity_lines = b'\n'.join(line_template.format(key, value).encode('ascii') for key, value in entity_dict.items())

    return b'{\n' + entity_lines + b'\n}'