code: def get_kwargs(self):
          
  
          kwargs = {}
  
          for attr in self.attrs:
              val = self.attrs[attr]
              if val is not None:
                  kwargs[attr] = repr(val)
  
          code = ", ".join(repr(key) + ": " + kwargs[key] for key in kwargs)
  
          code = "{" + code + "}"
  
          return code
docs: Return kwargs dict for text