def METHOD_NAME(self, did: str, timeout=60):
    start = time.time()
    ddo = None
    while not ddo:
        ddo = self.get_ddo(did)
        if not ddo:
            time.sleep(0.2)
        if time.time() - start > timeout:
            break
    return ddo