def METHOD_NAME(plan_model):
    """Activity object."""
    from renku.domain_model.provenance.activity import Activity, Association
    from renku.domain_model.provenance.agent import Person
    def _create_activity():
        activity_id = Activity.generate_id("c1ba59c308ab4c4d9edba71779cfe059")
        agent = Person(email="john.doe@example.com", name="John Doe")
        return Activity(
            id=activity_id,
            agents=[agent],
            started_at_time=datetime.fromisoformat("2022-07-12T16:29:14+02:00"),
            ended_at_time=datetime.fromisoformat("2022-07-12T16:29:14+02:00"),
            association=Association(id=Association.generate_id(activity_id), plan=plan_model(), agent=agent),
        )
    yield _create_activity