

def create_component(specification):
    specification = specification.copy()
    factory_dotted_name = specification.pop('__factory__')
    factory = resolve_dotted_name(factory_dotted_name)
    return factory(**specification)

dataset/ETHPy150Open ottogroup/palladium/palladium/util.py create_component/original