dims was an ExtSlice filed. After ExtSlice was merged with Tuple, dims was added as an alias of elts in Tuple, for limited backward compatibility.
Unless you need to support Python 3.8 and older, simply ignore ExtSlice and dims. ExtSlice() now returns a Tuple, and dims is an alias of elts. Both are deprecated and will be removed soon.