def _repr_categories_info(self):
category_strs = self._repr_categories()<EOL>dtype = getattr(self.categories, '<STR_LIT>',<EOL>str(self.categories.dtype))<EOL>levheader = "<STR_LIT>".format(<EOL>length=len(self.categories), dtype=dtype)<EOL>width, height = get_terminal_size()<EOL>max_width = get_option("<STR_LIT>") or width<EOL>if console.in_ipython_frontend():<EOL><INDENT>max_width = <NUM_LIT:0><EOL><DEDENT>levstring = "<STR_LIT>"<EOL>start = True<EOL>cur_col_len = len(levheader)  <EOL>sep_len, sep = (<NUM_LIT:3>, "<STR_LIT>") if self.ordered else (<NUM_LIT:2>, "<STR_LIT:U+002CU+0020>")<EOL>linesep = sep.rstrip() + "<STR_LIT:\n>"  <EOL>for val in category_strs:<EOL><INDENT>if max_width != <NUM_LIT:0> and cur_col_len + sep_len + len(val) > max_width:<EOL><INDENT>levstring += linesep + ("<STR_LIT:U+0020>" * (len(levheader) + <NUM_LIT:1>))<EOL>cur_col_len = len(levheader) + <NUM_LIT:1>  <EOL><DEDENT>elif not start:<EOL><INDENT>levstring += sep<EOL>cur_col_len += len(val)<EOL><DEDENT>levstring += val<EOL>start = False<EOL><DEDENT>return levheader + "<STR_LIT:[>" + levstring.replace("<STR_LIT>", "<STR_LIT>") + "<STR_LIT:]>"<EOL>
Returns a string representation of the footer.