@classmethod<EOL><INDENT>def _convert_to_border(cls, border_dict):<DEDENT>
from openpyxl.styles import Border<EOL>_border_key_map = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>border_kwargs = {}<EOL>for k, v in border_dict.items():<EOL><INDENT>if k in _border_key_map:<EOL><INDENT>k = _border_key_map[k]<EOL><DEDENT>if k == '<STR_LIT>':<EOL><INDENT>v = cls._convert_to_color(v)<EOL><DEDENT>if k in ['<STR_LIT:left>', '<STR_LIT:right>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>v = cls._convert_to_side(v)<EOL><DEDENT>border_kwargs[k] = v<EOL><DEDENT>return Border(**border_kwargs)<EOL>
Convert ``border_dict`` to an openpyxl v2 Border object
Parameters
----------
border_dict : dict
    A dict with zero or more of the following keys (or their synonyms).
        'left'
        'right'
        'top'
        'bottom'
        'diagonal'
        'diagonal_direction'
        'vertical'
        'horizontal'
        'diagonalUp' ('diagonalup')
        'diagonalDown' ('diagonaldown')
        'outline'
Returns
-------
border : openpyxl.styles.Border