def METHOD_NAME(self, ser: series.TestSeries, timeout=10):
    # Wait for the series to start.
    start_time = time.time()
    while not ser.status.has_state(SERIES_STATES.ALL_STARTED):
        if time.time() - start_time > timeout:
            stat_lines = ['current time: {}'.format(time.time())]
            for stat in ser.status.history():
                stat_lines.append(str(stat))
            self.fail("Could not detect series start. Series status: \n{}"
                      .format('\n'.join(stat_lines)))
        time.sleep(0.3)