def METHOD_NAME(step, ngsi_version, service, subservice):
    world.entities = None
    world.attributes_consult = None
    world.attributes_creation = None
    world.context_elements = None
    world.notify_conditions = None
    world.context_registration = None
    world.mock_data = None
    if service == 'empty':
        world.service = None
    else:
        world.service = service
    if subservice == 'empty':
        world.subservice = None
    else:
        world.subservice = subservice
    world.payloads_count += 1
    world.response_count += 1
    world.cb_count += 1
    if ngsi_version == 'NGSI10':
        world.cb[world.cb_count] = CbNgsi10Utils(world.config['context_broker']['host'], world.service,
                                                 world.subservice,
                                                 port=world.config['context_broker']['port'], log_verbosity='ERROR', log_instance=world.log)
    elif ngsi_version == 'NGSI9':
        world.cb[world.cb_count] = CbNgsi9Utils(world.config['context_broker']['host'], world.service, world.subservice,
                                                port=world.config['context_broker']['port'], log_verbosity='ERROR', log_instance=world.log)
    else:
        raise ValueError(
            'The version of ngsi api have to be \'NGSI9\' or \'NGSI10\', not {ngsi_version}'.format(ngsi_version=ngsi_version))