<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def safe_shlex_split(text_or_binary):
 """Split a string using shell-like syntax. Safe even on python versions whose shlex.split() method doesn't accept unicode. """

  value = ensure_text(text_or_binary) if PY3 else ensure_binary(text_or_binary)
  return shlex.split(value)