code: def resize(self, maxLen):
      assert maxLen > 0, "Invalid maximum length"
  
      self.__maxLen = maxLen
      self.__values = self.__values[-1 * maxLen :]
  
imports: import numpy
label_desc: Use image node_id 5 for calling the ListDeque obj's underlying member method code with example usage: obj.resize(maxLen) without return types