code: def widget_kwargs_for_field(self, field_name):
          
          if self._meta.widgets:
              return self._meta.widgets.get(field_name, {})
          return {}
docs: Returns widget kwargs for given field_name.