async def corofunc(**local_args):
            nonlocal called
            assert local_args == args
            called += 1
def mkhead(repo: 'Repo', path: PathLike) -> 'Head':
    """:return: New branch/head instance"""
    return git.Head(repo, git.Head.to_full_path(path))