code: def get_transformer(cls, method_name):
          
          transform_function = getattr(cls, method_name)
          assert callable(transform_function)
  
          def transformer_method(self, node):
              kwargs = {}
              if inspect.signature(transform_function).parameters.get("helper"):
                  kwargs["helper"] = self.helper
              return transform_function(node, **kwargs)
  
          return transformer_method
docs: Get method to bind to visitor