def METHOD_NAME(self, graph, completed_uids, timeout=5):
    sessionId = "lala"
    restPort = 8989
    args = ["--port", str(restPort), "-N", hostname, "-qq"]
    logger.debug("Starting NM on port %d", restPort)
    c = client.NodeManagerClient(port=restPort)
    dimProcess = tool.start_process("dim", args)
    with testutils.terminating(dimProcess, timeout=timeout):
        c.create_session(sessionId)
        logger.info("Appending graph")
        c.append_graph(sessionId, graph)
        # What we are actually trying to measure with all this stuff
        start = time.time()
        c.deploy_session(sessionId, completed_uids)
        delta = time.time() - start
        # A minute is more than enough, in my PC it takes around 4 or 5 [s]
        # A minute is also way less than the ~2 [h] we observed in AWS
        self.assertLessEqual(
            delta, 60, "It took way too much time to create all drops"
        )