def mapped_included(inc: dict) -> dict:
    """Makes included more easily searchable by creating a dict that
    has (type,id) pair as key.

    Also, returned value for the key can be used for relationships node.

    ie.
    {
        ('people', '12'): {
            'id': '12,
            'type': 'people',
            'attributes': {
                'name': 'John'
            }
        },
        ('tag', '11'): {
            ...
        }
    }
    """
    included = {}

    if inc:
        for include in inc:
            included[include.get('type'), include.get('id')] = include

    return included