<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_overlaps(self, offset, length):
 """Returns chunks overlapped with the given range. Args: offset (int):
 Begin offset of the range. length (int):
 Length of the range. Returns: Overlapped chunks. (:obj:`budou.chunk.ChunkList`) """

    # In case entity's offset points to a space just before the entity.
    if ''.join([chunk.word for chunk in self])[offset] == ' ':
      offset += 1
    index = 0
    result = ChunkList()
    for chunk in self:
      if offset < index + len(chunk.word) and index < offset + length:
        result.append(chunk)
      index += len(chunk.word)
    return result