i have shared python tutorial on how to get size of any python object using sys.getsizeof() function.here is exact code i used for this videohow to get size
ilastik - Object Classification
Java get file size
Python '!=' Is Not 'is not': Comparing Objects in Python – Real Python
Python: Get the size of an object in bytes - w3resource
Will McGugan on X: I'm working on an 'inspect' feature for #Rich
Solved Add an instance variable named logical_size which
PYTHON : Python : Get size of string in bytes
How to Get the Size of an Object in Bytes
How to Find Pandas DataFrame Size, Shape, and Dimensions Properties