def METHOD_NAME(barerepo):
    tree = barerepo[TREE_SHA]
    subtree_entry = tree['c']
    assertTreeEntryEqual(subtree_entry, SUBTREE_SHA, 'c', 0o0040000)
    assert subtree_entry.type == pygit2.GIT_OBJ_TREE
    assert subtree_entry.type_str == 'tree'
    subtree_entry = tree / 'c'
    assertTreeEntryEqual(subtree_entry, SUBTREE_SHA, 'c', 0o0040000)
    assert subtree_entry.type == pygit2.GIT_OBJ_TREE
    assert subtree_entry.type_str == 'tree'
    subtree = barerepo[subtree_entry.id]
    assert 1 == len(subtree)
    sha = '297efb891a47de80be0cfe9c639e4b8c9b450989'
    assertTreeEntryEqual(subtree[0], sha, 'd', 0o0100644)
    subtree_entry = (tree / 'c')
    assert subtree_entry == barerepo[subtree_entry.id]