Module 'cv2.cv2' has no attribute 'createMemStorage'

error module ‘cv2.cv2’ has no attribute ‘createMemStorage’
can someone explain to me, what i haveto do for this error, what equivalent for this function on new opencv version

this is from the deprecated 1.0 c-api, it does no more exist

you have to rewrite it using numpy arrays
(throw that code away, its too old to be useful)

do you have the example?

which example ?

try to explain, what it is doing, then we can point you at a more modern sample / tutorial