def _get_join_indexers(left_keys, right_keys, sort=False, how='<STR_LIT>',<EOL>**kwargs):
from functools import partial<EOL>assert len(left_keys) == len(right_keys),'<STR_LIT>'<EOL>fkeys = partial(_factorize_keys, sort=sort)<EOL>llab, rlab, shape = map(list, zip(* map(fkeys, left_keys, right_keys)))<EOL>lkey, rkey = _get_join_keys(llab, rlab, shape, sort)<EOL>lkey, rkey, count = fkeys(lkey, rkey)<EOL>kwargs = copy.copy(kwargs)<EOL>if how == '<STR_LIT:left>':<EOL><INDENT>kwargs['<STR_LIT>'] = sort<EOL><DEDENT>join_func = _join_functions[how]<EOL>return join_func(lkey, rkey, count, **kwargs)<EOL>
Parameters
----------
left_keys: ndarray, Index, Series
right_keys: ndarray, Index, Series
sort: boolean, default False
how: string {'inner', 'outer', 'left', 'right'}, default 'inner'

Returns
-------
tuple of (left_indexer, right_indexer)
    indexers into the left_keys, right_keys