import objgraph
objgraph.show_most_common_types(limit = 50)
function                   30757
dict                       22992
tuple                      13382
list                       7525
cell                       5955
weakref                    5793
getset_descriptor          4999
method_descriptor          4306
builtin_function_or_method 3694
wrapper_descriptor         3428
type                       3244
property                   2015
set                        1808
module                     1608
ModuleSpec                 1602
SourceFileLoader           1440
LP_DGLArray                1121
staticmethod               1112
member_descriptor          735
WeakSet                    555
classmethod                529
fused_cython_function      495
FontEntry                  471
NDArray                    435
itemgetter                 405
instancemethod             350
MovedAttribute             342
cython_function_or_method  250
frozenset                  224
CopyReduceBackward         216
Enum                       205
It didn’t return the count of the type Tensor