@classmethod<EOL><INDENT>def get_transformer(cls, method_name):<DEDENT>
transform_function = getattr(cls, method_name)<EOL>assert callable(transform_function)<EOL>def transformer_method(self, node):<EOL><INDENT>kwargs = {}<EOL>if inspect.signature(transform_function).parameters.get("<STR_LIT>"):<EOL><INDENT>kwargs["<STR_LIT>"] = self.helper<EOL><DEDENT>return transform_function(node, **kwargs)<EOL><DEDENT>return transformer_method<EOL>
Get method to bind to visitor