def pinch(self, direction='<STR_LIT>', percent=<NUM_LIT>, duration=<NUM_LIT>, dead_zone=<NUM_LIT:0.1>):
if direction not in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>raise ValueError('<STR_LIT>'.format(repr(direction)))<EOL><DEDENT>if dead_zone >= percent:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>.format(repr(dead_zone), repr(percent)))<EOL><DEDENT>tracks = make_pinching(direction, [<NUM_LIT:0.5>, <NUM_LIT:0.5>], [<NUM_LIT:1>, <NUM_LIT:1>], percent, dead_zone, duration)<EOL>speed = (percent - dead_zone) / <NUM_LIT:2> / duration<EOL>ret = self.apply_motion_tracks(tracks, accuracy=speed * <NUM_LIT>)<EOL>return ret<EOL>
Squeezing or expanding 2 fingers on the entire screen.

Args:
    direction (:py:obj:`str`): pinching direction, only "in" or "out". "in" for squeezing, "out" for expanding
    percent (:py:obj:`float`): squeezing range from or expanding range to of the entire screen
    duration (:py:obj:`float`): time interval in which the action is performed
    dead_zone (:py:obj:`float`): pinching inner circle radius. should not be greater than ``percent``