code: def _join_path(root, *parts):
      path = [
          part
          for part in itertools.chain([root], parts)
          if part not in ("/", "")
      ]
      return "/".join(path)
  
imports: import itertools
  import logging
  import os
  import subprocess
  import sys
  import uuid
  from guild import remote
  from guild import remote_util
  from guild import util
  from guild import var
  from .None import meta_sync
label_desc: Use image node_id 4 for calling a global function with example usage: _join_path(root) and returns: str