code: def path_segments(self, value=None):
          
          if value is not None:
              encoded_values = map(unicode_quote_path_segment, value)
              new_path = '/' + '/'.join(encoded_values)
              return URL._mutate(self, path=new_path)
          parts = self._tuple.path.split('/')
          segments = parts[1:]
          if self._tuple.path.endswith('/'):
              segments.pop()
          segments = map(unicode_unquote, segments)
          return tuple(segments)
docs: Return the path segments
  
          :param list value: the new path segments to use