def METHOD_NAME(prs):
    api = GhApi(owner='cloud-custodian', repo='cloud-custodian')
    results = []
    for pr in track(prs, description="Checking current PR state"):
        cur = api.pulls.get(pr['number'])
        if cur['merged'] or cur['closed_at']:
            continue
        results.append(pr)
    return results