def METHOD_NAME(self, args, kwargs, data):
    """
    method to check for required relationship with event
    :param args:
    :param kwargs:
    :param data:
    :return:
    """
    require_relationship(['user'], data)
    if not has_access('is_user_itself', user_id=int(data['user'])):
        raise ObjectNotFound(
            {'parameter': 'user_id'},
            "User: {} doesn't match auth key".format(data['user']),
        )
    if 'event' in data and 'session' in data:
        raise UnprocessableEntityError(
            {'pointer': ''},
            "Only one relationship between event and session is allowed",
        )
    if 'event' not in data and 'session' not in data:
        raise UnprocessableEntityError(
            {'pointer': ''}, "A valid relationship with event and session is required"
        )