code: def match(self, metadata, user = None):
          
          assert isinstance(metadata, self.formatclass)
          return self.generate(metadata,user)
docs: Does the specified metadata match this template? returns (success,metadata,parameters)