def METHOD_NAME(obj):
    # from http://stackoverflow.com/questions/34637875/size-of-numpy-strided-array-broadcast-array-in-memory
    if obj.base is not None:
        return METHOD_NAME(obj.base)
    return obj.nbytes