def _prepare_args(log_likelihood_fn, state,<EOL>log_likelihood=None, description='<STR_LIT>'):
state_parts = list(state) if mcmc_util.is_list_like(state) else [state]<EOL>state_parts = [tf.convert_to_tensor(s, name='<STR_LIT>')<EOL>for s in state_parts]<EOL>log_likelihood = _maybe_call_fn(<EOL>log_likelihood_fn,<EOL>state_parts,<EOL>log_likelihood,<EOL>description)<EOL>return [state_parts, log_likelihood]<EOL>
Processes input args to meet list-like assumptions.