code: def _get_field_info(self, field, filter_rel_field, page=None, page_size=None):
          
          ret = dict()
          ret["name"] = field.name
          ret["label"] = self.label_columns.get(field.name, "")
          ret["description"] = self.description_columns.get(field.name, "")
          # Handles related fields
          if isinstance(field, Related) or isinstance(field, RelatedList):
              ret["count"], ret["values"] = self._get_list_related_field(
                  field, filter_rel_field, page=page, page_size=page_size
              )
          if field.validate and isinstance(field.validate, list):
              ret["validate"] = [str(v) for v in field.validate]
          elif field.validate:
              ret["validate"] = [str(field.validate)]
          ret["type"] = field.__class__.__name__
          ret["required"] = field.required
          ret["unique"] = field.unique
          return ret
docs: Return a dict with field details
              ready to serve as a response
  
          :param field: marshmallow field
          :return: dict with field details