code: def swipe(self, direction, focus=None, duration=0.5):
          
  
          try:
              duration = float(duration)
          except ValueError:
              raise ValueError('Argument `duration` should be <float>. Got {}'.format(repr(duration)))
  
          focus = focus or self._focus or 'anchor'
          dir_vec = self._direction_vector_of(direction)
          origin = self.get_position(focus)
          self.poco.pre_action('swipe', self, (origin, dir_vec))
          ret = self.poco.swipe(origin, direction=dir_vec, duration=duration)
          self.poco.post_action('swipe', self, (origin, dir_vec))
          return ret
docs: Perform a swipe action given by the direction from this UI element. For notices and limitations see
          :py:meth:`.click() <poco.proxy.UIObjectProxy.click>`. 
  
          Args:
              direction (2-:obj:`tuple`/2-:obj:`list`/:obj:`str`):  coordinates (x, y) in NormalizedCoordinate system, it
               can be also specified as  'up', 'down', 'left', 'right'. Swipe 'up' is equivalent to [0, -0.1], swipe
               'down' is equivalent to [0, 0.1], swipe 'left' is equivalent to [-0.1, 0] and swipe 'right' is equivalent
               to [0, 0.1]
              focus (2-:obj:`tuple`/2-:obj:`list`/:obj:`str`): see :py:meth:`.click() <poco.proxy.UIObjectProxy.click>`
               for more details
              duration (:py:obj:`float`): time interval in which the action is performed
  
          Raises:
              PocoNoSuchNodeException: raised when the UI element does not exist