human
I wrote the below code

    first = first.get_filesystem().get_path()
    second = second.get_filesystem().get_path()
    def get_contents(path):
        result = {}
        for child in path.children():
            if child.isdir():
                value = get_contents(child)
            else:
                value = child.getContent()
            result[child.basename()] = value
        return result
    test.assertEqual(get_contents(first), get_contents(second))

What's a good function header?
assistant
#Here's a good function header.

def assertVolumesEqual(test, first, second):