parameters: (t, suffix)
return_statement: return t, stem
docstring: Ensure that the target t has the given suffix, and return the file's stem.
docstring_summary: Ensure that the target t has the given suffix, and return the file's stem.
docstring_tokens: Ensure that the target t has the given suffix and return the file s stem .
function: def __ensure_suffix_stem(t, suffix):
      """ Ensure that the target t has the given suffix, and return the file's stem. """
      tpath = str(t)
      if not tpath.endswith(suffix):
          stem = tpath
          tpath += suffix
          
          return tpath, stem
      else:
          stem, ext = os.path.splitext(tpath)
      
      return t, stem
function_tokens: def __ensure_suffix_stem ( t , suffix ) : tpath = str ( t ) if not tpath . endswith ( suffix ) : stem = tpath tpath += suffix return tpath , stem else : stem , ext = os . path . splitext ( tpath ) return t , stem