def get_defined_pipeline_classes_by_key(module, key):
    """Return all class objects in given module which contains given key in its name."""
    return [
        cls for name, cls in module.__dict__.items()
        if isinstance(cls, type) and key in name
    ]