def prepare_relationship(config, model_name, raml_resource):
    if get_existing_model(model_name) is None:
        plural_route = '/' + pluralize(model_name.lower())
        route = '/' + model_name.lower()
        for res in raml_resource.root.resources:
            if res.method.upper() != 'POST':
                continue
            if res.path.endswith(plural_route) or res.path.endswith(route):
                break
        else:
            raise ValueError('Model `{}` used in relationship is not '
                             'defined'.format(model_name))
        setup_data_model(config, res, model_name)
Reads channel specified by channel_num, with options.
dataset/ETHPy150Open ramses-tech/ramses/ramses/models.py/prepare_relationship--crossover with--dataset/ETHPy150Open IEEERobotics/bot/bot/hardware/ADC.py/ADC.read_channel