source
espnet2.utils.sized_dict.get_size(obj, seen=None)
Recursively finds size of objects
Taken from https://github.com/bosswissam/pysize