code: def set_border_type(self, clazz, weight=DefaultWeight, color=None, cap=None, dashes=None, join=None, count=None,
                          space=None):
          
          args = locals()
          args.pop('clazz')
          args.pop('self')
          clazz(**args).apply(self)
docs: example: set_border_type(BorderTypePartialRows) would set a border above and below each row in the range