code: def ensure_list_size(list_, size_):
      
      lendiff = (size_) - len(list_)
      if lendiff > 0:
          extension = [None for _ in range(lendiff)]
          list_.extend(extension)
docs: Allocates more space if needbe.
  
      Ensures len(``list_``) == ``size_``.
  
      Args:
          list_ (list): ``list`` to extend
          size_ (int): amount to exent by