def METHOD_NAME() -> bool:
    """
    Wait for files to be written and clean up asynchronous PathManager.
    NOTE: `PathManager.async_close()` must be called at the end of any
    script that uses `PathManager.opena(...)`.
    """
    global IOPathManager
    if IOPathManager:
        return IOPathManager.METHOD_NAME()
    return False