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
How to Find Class Size (With Examples) - Statology
Variable's memory size in Python - AskPython
Python consumes too much memory, or how to reduce the size of
Unexpected Size of Python Objects in Memory
PYTHON : Python : Get size of string in bytes
How does python store objects in memory - Stack Overflow
Solved Add an instance variable named logical_size which
How to Find the Largest or Smallest Object in an Image in Python
Shape, Size and Data Type of an Array
How to Pretty Print JSON in Python
Measuring size of objects in an image with Opencv Python to assess
Unexpected Size of Python Objects in Memory
object-size-detector-python/README.md at master · intel-iot-devkit