code: def match_function(self, args, kwargs, match_args=(), star_arg=None, kwd_args=(), dubstar_arg=None):
          
          self.match_in_args_kwargs(match_args, args, kwargs, allow_star_args=star_arg is not None)
          if star_arg is not None:
              self.match(star_arg, args + "[" + str(len(match_args)) + ":]")
          self.match_in_kwargs(kwd_args, kwargs)
          with self.down_a_level():
              if dubstar_arg is None:
                  self.add_check("not " + kwargs)
              else:
                  self.match(dubstar_arg, kwargs)
docs: Matches a pattern-matching function.