code: def _join_translated(translated_parts, os_sep_class):
      """Join translated glob pattern parts.
  
      This is different from a simple join, as care need to be taken
      to allow ** to match ZERO or more directories.
      """
      res = ""
      for part in translated_parts[:-1]:
          if part == ".*":
              # drop separator, since it is optional
              # (** matches ZERO or more dirs)
              res += part
          else:
              res += part + os_sep_class
  
      if translated_parts[-1] == ".*":
          # Final part is **
          res += ".+"
          # Follow stdlib/git convention of matching all sub files/directories:
          res += "({os_sep_class}?.*)?".format(
              os_sep_class=os_sep_class
          )
      else:
          res += translated_parts[-1]
      return res
  
imports: from collections import defaultdict
  from os.path import join
  import io
  import os
  import functools
  import pipes
  import re
  import shlex
  import subprocess
  import sys
  from setuptools import Command
  from setuptools.command.build_py import build_py
  from setuptools.command.sdist import sdist
  from distutils import log
  from setuptools.command.develop import develop
  from setuptools.command.bdist_egg import bdist_egg
label_desc: Use image node_id 25 for calling a global function with example usage: _join_translated(translated_parts, os_sep_class) and returns: res