code: def _t2s(t):
      res = []
      for e in t:
          if isinstance(e, tuple):
              es = _t2s(e)
              if es != "":
                  res += ["(%s)" % es]
          elif e != "":
              res += [e]
      return "/".join(res)
  
imports: import logging
  import os
  import os.path
  import sys
  import tempfile
  import textwrap
  from collections import defaultdict
  from functools import partial
  from datalad.dochelpers import get_docstring_split
  from datalad.interface.base import Interface, build_doc
  from datalad.utils import ensure_unicode, getpwd, unlink, Path
  from datalad.support.external_versions import external_versions
  from datalad.support.exceptions import CapturedException, CommandError, InvalidGitRepositoryError
  from datalad import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: _t2s(t) and returns: str