def _ensure_only_component_references(cmd, references):
    for match in TAG_RE.finditer(cmd):
        tag = match.group('tag')
        if tag not in references or not \
                isinstance(references[tag], ComponentID):
            raise TypeError(
                "Reference to %s, which is not a ComponentID" % tag)
Save a copy of sys.path
dataset/ETHPy150Open glue-viz/glue/glue/core/parse.py/_ensure_only_component_references--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_site.py/HelperFunctionsTests.setUp