def run_only_if_ElementTree_is_available(func):
    try:
        from xml.etree import ElementTree
    except __HOLE__:
        ElementTree = None
    pred = lambda: ElementTree is not None
    return run_only(func, pred)
dataset/ETHPy150Open python-diamond/Diamond/src/collectors/kafkastat/test/testkafka.py/run_only_if_ElementTree_is_available