def METHOD_NAME(plan_model):
    """`CompositePlan` object with steps."""
    from renku.domain_model.workflow.composite_plan import CompositePlan
    def _create_composite(name="my-composite", num_steps=2):
        steps = []
        for i in range(num_steps):
            steps.append(plan_model(name=f"my-plan-{i}", identifier=uuid4().hex))
        return CompositePlan(
            id=CompositePlan.generate_id(uuid="2ecdb9651ea745a4a419272f2451457c"),
            name=name,
            plans=steps,
            date_created=datetime.fromisoformat("2022-07-12T16:29:14+02:00"),
            date_modified=datetime.fromisoformat("2022-07-12T16:29:14+02:00"),
        )
    yield _create_composite