code: def targetOffset(self, dx, dy):
          
          pattern = Pattern(self.path)
          pattern.similarity = self.similarity
          pattern.offset = Location(dx, dy)
          return pattern
docs: Returns a new Pattern with the given target offset