def _get_field_info(self, field, filter_rel_field, page=None, page_size=None):
ret = dict()<EOL>ret["<STR_LIT:name>"] = field.name<EOL>ret["<STR_LIT:label>"] = self.label_columns.get(field.name, "<STR_LIT>")<EOL>ret["<STR_LIT:description>"] = self.description_columns.get(field.name, "<STR_LIT>")<EOL>if isinstance(field, Related) or isinstance(field, RelatedList):<EOL><INDENT>ret["<STR_LIT:count>"], ret["<STR_LIT>"] = self._get_list_related_field(<EOL>field, filter_rel_field, page=page, page_size=page_size<EOL>)<EOL><DEDENT>if field.validate and isinstance(field.validate, list):<EOL><INDENT>ret["<STR_LIT>"] = [str(v) for v in field.validate]<EOL><DEDENT>elif field.validate:<EOL><INDENT>ret["<STR_LIT>"] = [str(field.validate)]<EOL><DEDENT>ret["<STR_LIT:type>"] = field.__class__.__name__<EOL>ret["<STR_LIT>"] = field.required<EOL>ret["<STR_LIT>"] = field.unique<EOL>return ret<EOL>
Return a dict with field details
    ready to serve as a response

:param field: marshmallow field
:return: dict with field details