def find_component(interpreter, component_name):
    """Finds a component in a pipeline."""
    for c in interpreter.pipeline:
        if c.name == component_name:
            return c
    return None
