def _get_separator(num, sep_title, sep_character, sep_length):
left_divider_length = right_divider_length = sep_length<EOL>if isinstance(sep_length, tuple):<EOL><INDENT>left_divider_length, right_divider_length = sep_length<EOL><DEDENT>left_divider = sep_character * left_divider_length<EOL>right_divider = sep_character * right_divider_length<EOL>title = sep_title.format(n=num + <NUM_LIT:1>)<EOL>return "<STR_LIT>".format(<EOL>left_divider=left_divider, right_divider=right_divider, title=title)<EOL>
Get a row separator for row *num*.