code: def out(self):
          
          out = ""
          if self.use_sentinel:
              out += sentinel_var + " = _coconut.object()\n"
          closes = 0
          for checks, defs in self.checkdefs:
              if checks:
                  out += "if " + paren_join(checks, "and") + ":\n" + openindent
                  closes += 1
              if defs:
                  out += "\n".join(defs) + "\n"
          return out + (
              self.check_var + " = True\n"
              + closeindent * closes
              + "".join(other.out() for other in self.others)
              + (
                  "if " + self.check_var + " and not ("
                  + paren_join(self.guards, "and")
                  + "):\n" + openindent
                  + self.check_var + " = False\n" + closeindent
                  if self.guards else ""
              )
          )
docs: Return pattern-matching code.