def METHOD_NAME(deprecated, body_tmpl, repo):
    issues = []
    for component, items in deprecated.items():
        title = items[0]['title']
        path = '\n'.join(set((i['path']) for i in items))
        line = '\n'.join(i['line'] for i in items)
        body = body_tmpl % dict(component=component, path=path,
                                line=line,
                                version=ANSIBLE_MAJOR_VERSION)
        issue = repo.create_issue(title, body=body, labels=['deprecated'])
        print(issue)
        issues.append(issue)
        # Sleep a little, so that the API doesn't block us
        time.sleep(0.5)
    return issues