def flocker_dataset_agent_main():
    service_factory = DatasetServiceFactory()
    agent_script = AgentScript(service_factory=service_factory.get_service)
    options = DatasetAgentOptions()

    # Use CPU time instead of wallclock time.
    pr = cProfile.Profile(clock)

    signal.signal(signal.SIGUSR1, partial(enable_profiling, pr))
    signal.signal(signal.SIGUSR2, partial(disable_profiling, pr, 'dataset'))

    return FlockerScriptRunner(
        script=agent_script,
        options=options,
    ).main()
Loops through the class dict and collects all Action instances,
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/script.py/flocker_dataset_agent_main--crossover with--dataset/ETHPy150Open lsaffre/lino/lino/core/actors.py/Actor._collect_actions