def get_items(prov, item_name, item_key, test_func):
    if not hasattr(prov, item_key):
        raise ConfigurationError('The %s collection was not found in the provyfile file.' % item_key)

    items = getattr(prov, item_key)

    for item_part in item_name.split('.'):
        items = items[item_part]

    found_items = []
    recurse_items(items, test_func, found_items)
    return found_items
dataset/ETHPy150Open python-provy/provy/provy/core/runner.py/get_items/original