code: def index_spacing(self, value):
          
          if not isinstance(value, bool):
              raise TypeError('index_spacing attribute must be a logical type.')
          self._index_spacing = value
docs: Validate and set the index_spacing flag.