

def import_coordinator(coordinator, coordinator_definition, metadata=None):
    coordinator_definition_root = etree.fromstring(coordinator_definition)
    if (coordinator_definition_root is None):
        raise RuntimeError(_("Could not find any nodes in Coordinator definition. Maybe it's malformed?"))
    return import_coordinator_root(coordinator, coordinator_definition_root, metadata)

dataset/ETHPy150Open cloudera/hue/apps/oozie/src/oozie/importlib/coordinators.py import_coordinator/original