class_docstr: Iterative access to coordinate tuples from the parent geometry's coordinate
  sequence.
  
  Example:
  
    >>> from shapely.wkt import loads
    >>> g = loads('POINT (0.0 0.0)')
    >>> list(g.coords)
    [(0.0, 0.0)]
code: def __getitem__(self, key):
      m = self.__len__()
      if isinstance(key, int):
          if key + m < 0 or key >= m:
              raise IndexError("index out of range")
          if key < 0:
              i = m + key
          else:
              i = key
          return tuple(self._coords[i].tolist())
      elif isinstance(key, slice):
          res = []
          start, stop, stride = key.indices(m)
          for i in range(start, stop, stride):
              res.append(tuple(self._coords[i].tolist()))
          return res
      else:
          raise TypeError("key must be an index or slice")
  
file_path: shapely/shapely/coords.py
imports: from array import array
label_desc: Use image node_id 4 for calling the CoordinateSequence obj's underlying member method code with example usage: obj.__getitem__(key) and returns: tuple, res