def METHOD_NAME(self, filename):
    with open(filename, "r", encoding="utf8") as f:
        d = json.load(f)
        blocks = d["blocks"]
        mocktime = d["mocktime"]
        self.expected_stats = d["stats"]
    # Set the timestamps from the file so that the nodes can get out of Initial Block Download
    self.nodes[0].setmocktime(mocktime)
    for b in blocks:
        self.nodes[0].submitblock(b)