def METHOD_NAME(container: DIContainer) -> IMachineRepository:
    machine_repository = container.resolve(MongoMachineRepository)
    initialize_machine_repository(machine_repository)
    return machine_repository