def get_kwargs_from_breaks(self, breaks, closed='<STR_LIT:right>'):
if len(breaks) == <NUM_LIT:0>:<EOL><INDENT>return {'<STR_LIT:data>': breaks}<EOL><DEDENT>tuples = lzip(breaks[:-<NUM_LIT:1>], breaks[<NUM_LIT:1>:])<EOL>if isinstance(breaks, (list, tuple)):<EOL><INDENT>return {'<STR_LIT:data>': tuples}<EOL><DEDENT>elif is_categorical_dtype(breaks):<EOL><INDENT>return {'<STR_LIT:data>': breaks._constructor(tuples)}<EOL><DEDENT>return {'<STR_LIT:data>': com.asarray_tuplesafe(tuples)}<EOL>
converts intervals in breaks format to a dictionary of kwargs to
specific to the format expected by IntervalIndex.from_tuples