<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def click_nowait(self, pattern, action='click', desc=None, **match_kwargs):
 """ Return immediately if no image found Args: - pattern (str or Pattern):
 filename or an opencv image object. - action (str):
 click or long_click Returns: Click point or None """

        point = self.match(pattern, **match_kwargs)
        if not point or not point.matched:
            return None

        func = getattr(self, action)
        func(*point.pos)
        return point