code: def create_method(self, func):
      
      # pylint: disable=missing-docstring
      @functools.wraps(func)
      def method(input_layer, *args, **kwargs):
        return func(input_layer, *args, **self.fill_kwargs(input_layer, kwargs))
  
      return method
docs: Creates the method.